Paris_France
asked on
Simple IO question
Hi
if you use the statment below to read from file (arg0) and write to a file from arg1. What is the statment that you must use to write into the file created for writing. I used out.write but it seems that this method is for binary files and I am just reading a text file and then do some processing and then write it again as text.
Thanks
PF
StreamTokenizer stok = new
StreamTokenizer(new FileInputStream (args[0]));
FileOutputStream out=new FileOutputStream (args[1]);
if you use the statment below to read from file (arg0) and write to a file from arg1. What is the statment that you must use to write into the file created for writing. I used out.write but it seems that this method is for binary files and I am just reading a text file and then do some processing and then write it again as text.
Thanks
PF
StreamTokenizer stok = new
StreamTokenizer(new FileInputStream (args[0]));
FileOutputStream out=new FileOutputStream (args[1]);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I will leave a recommendation in the Cleanup topic area that this
question is:
- split points between msterjev and objects
Please leave any comments here within the
next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
girionis
Cleanup Volunteer