wallaceoc80
Programmer
I have to write a simple Java program using file input and ouput. It has to read from a text file. This is how I did that:
That works fine but how do I write the ascii values to another file? Whenever I try to do it, it just writes the characters to the other file.
Thanks for the help.
Wallace
Code:
try
{
BufferedReader brInput = new BufferedReader(new InputStreamReader(System.in));
String strInFileName = brInput.readLine();
File fInput = new File(strInFileName);
RandomAccessFile rafIn = new RandomAccessFile(fInput, "r");
...
...
That works fine but how do I write the ascii values to another file? Whenever I try to do it, it just writes the characters to the other file.
Thanks for the help.
Wallace