hi , i am in a trouble for input/output in java file handling. suppose i have a file
"data.txt" which conatins a matrix (say n x m dimension) . elements are some number. i want to read each of those numbers and want to do some mathematical operation on each of this , then want a output in a file. how can i do this?
something like this............
read a number from file
do some operation on that number.
send that to the output file.
read next number.
repeat the above steps.
I AM IN A CONFUSED STATE BY WATCHING SO MANY STREAMS AND FILE HANDLING MANNERS IN THE BOOK. I THINK MOST OF THE DATA FILE ARE LIKE ABOVE . SO I WANT A GENERAL PROCEDURE TO DO THE FILE-HANDLING OPERATIONS. CAN ANYBODY HELP PLZZZZZZZ....