Ok, so that works with reading from a file. But could you explain how to write to a file? tx
As for File Output:
| |import java.io.*;
public static void
main ( String 
out = new BufferedWriter (new FileWriter("MyFile.txt"))
out.write("Hello! I am creating a new file."
+ " If a file named \"My File.txt\" existed already, you would lose it!")
outAppend = new BufferedWriter (new FileWriter("MyFile.txt"
outAppend.append("This is being appended to the end of the old \"MyFile.txt\"!"
+ "This is because I passed in a second argument, 'true', to the FileWriter constructor.")
} catch (IOException
.println("You must not have write permissions to this directory!")