###前提・実現したいこと
javaでftpからファイルをダウンロードしたいのですがエラーによりうまくいきません。
###発生している問題・エラーメッセージ
01-26 06:22:22.461 7710-7710/com.example.intern.ftpconnect I/System.out: C\hogehoge.txt (Read-only file system)
01-26 06:22:22.461 7710-7710/com.example.intern.ftpconnect I/System.out: ファイルは存在しません。
###該当のソースコード
java
ここにご自身が実行したソースコードを書いてください
FileOutputStream os = null;
try{
//File SEND
os = new FileOutputStream("C:\hogehoge.txt");
ftpClient.retrieveFile("hogehoge.txt", os);
os.close();
System.out.println("FTP GET COMPLETED");
}catch(Exception e){ System.out.println(e.getMessage()); File file = new File("hogehoge.txt"); if (file.exists()) { System.out.println("ファイルは存在します。"); } else { System.out.println("ファイルは存在しません。"); }
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報
初心者で全く見当もつかないのでご教授お願いいたします。

回答4件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/27 05:42