JAVA: raf.write() question!
Good evening everyone,
My questions are:
1. To write something in a non-ascii file
raf.writeInt(int_variable) //for int
raf.writeBytes(string_variable) //for string
2. To write something in an ascii file e.g. .txt file
raf.write(variable) //for every kind of variable
Are these two right?? :/
P.S. of course raf files are initialized before I just ask which is the right way to write variables into a file
Regards, nontas
|