Android デバイスから Windows フォルダーにファイルを書き込んでいます。
すべての内容はそのままですが、新しい行を書き込めません。
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(null,nam,p);
file = new SmbFile(url, auth);
SmbFileOutputStream out = new SmbFileOutputStream(file,true);
私が試してみました :
out.write(("next"+ "\n" + text).getBytes());
out.write(("next"+String.format("%n") + text).getBytes());
out.write(("next"+System.getProperty("line.separator") + text).getBytes());
out.flush();
out.close();
しかし、どれも機能していないようです。助けてください。