Friday, July 31, 2009

Reading and writing files in java

I always forget the exact syntax of lines in java for reading and writing files...

Reading files:
Convert the file to inputstream or outstream and then read or write to the file using streamReader or streamWriter...

Create the fileReader from the file and read that fileReader using bufferedReader

Use scanner to read file by line by line...

No comments:

Post a Comment