Originally posted by fei lin: Can I hard code the starting point to read the start of data section? database(flatfile).? what is magic cookie value used for? Should I validate it evertime when user picked their file?
yes you can choose to hard code the starting point. I've read on the forum that many people did that. Simply mention it in your design choices. The magic cookie is is meant to be used by your application to "garantee" that the database file is really the one your are expecting. Imagine if the SUN examiner tries to use a different database with your application. You don't want that to happen, so you use the magic cookie to detect that..
Regards, Alex [ February 08, 2008: Message edited by: Alex Belisle Turcot ]
Joined: Nov 25, 2007
thanks so much, that clears out my confusion.
subject: question regarding reading the binary file