Campbell Ritchie wrote:What sort of file are you writing to? If a text file, you could try Formatter. And obviously for reading you could try a Scanner.
It's completely up to me. It doesn't matter what type of file I write to, as long as I can read the same value back that I wrote to it.
After posting the original article I noticed classes {DataOutputStream} and {DataInputStream}, with their methods {writeLong()} and {readLong()} respectively. Is using these methods as good as using any other methods of any other class to write and read {long}s?
Kevin S