Only opened by your program? You can save something as a different extension, but other programs will be able to open it and probably easily decipher the contents, especially if it's just text.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
You can save anything you want. It's just a bag o'bytes on the disk (or whatever storage medium you're using) after all.
Just use the correct stream classes (things like ByteArrayOutputStream) and set the file flags correctly (you may want a RandomAccessFile).
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337