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
It's hard to say whether what you wrote is correct without knowing what kind of object raf is.
|All times are GMT -5. The time now is 05:28 AM.|