Exercise


Exercise 29.1: Binary or text file format?

Open one of the saved files in WordPad to see what it looks like. It's in binary form, so will be unreadable gibberish. Can you think of a way to save and load files that are written in readable text form? It can be done, though it takes some extra work. Figuring out how to do it is a good research project. The virtue of having files in readable text form is that you can edit them so as to change the nature of the objects being loaded; of course, there are risks to doing this as careless edits may make the file unreadable. But when developing a program, editable text files can provide a useful debugging tool as well as a kind of 'meta-interface' to the program.



Software Engineering and Computer Games
Software Engineering and Computer Games
ISBN: B00406LVDU
EAN: N/A
Year: 2002
Pages: 272

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net