zhanghong920
Programmer
I have a FileWriter object "outputfile", and use:
outputfile.write(w+ " "
in a while loop to write the value in array w[]. Now,
how can I read the values from the outputfile next time? I use FileReader.read() as below, but it doesn't work.
FileReader vectorFile = new FileReader("d:/..."
vectorFile.read(tmpValueStr);
ncol = Integer.parseInt(tmpValueStr.toString());
Any suggestions? Besides, what's the best way to write/read a file of a array of integer/double?
Thanks a lot!
Hong
outputfile.write(w+ " "
in a while loop to write the value in array w[]. Now,
how can I read the values from the outputfile next time? I use FileReader.read() as below, but it doesn't work.
FileReader vectorFile = new FileReader("d:/..."
vectorFile.read(tmpValueStr);
ncol = Integer.parseInt(tmpValueStr.toString());
Any suggestions? Besides, what's the best way to write/read a file of a array of integer/double?
Thanks a lot!
Hong