[英]How to append text into an existing file using java 1.4
我想附加到现有的文本文件中。 为此,我已经尝试了很多方法FileWriter
, BufferedWriter
, PrintWriter
, RandomAccessFile
, OutputStream
, FileOutputStream
, PrintStream
但是我无法获得想要的输出。
此错误java.io.FileNotFoundException: could not open file '//file:/usr/backupdata/5605.txt' using mode 'a+'
。 (我正在使用仅支持javaetk 1.4的ewon flexy硬件)
您正在尝试使用url作为文件名。 那行不通。
采用
/use/backupdata/5605.txt
作为文件名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.