File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Developer Certification (SCJD/OCMJD)
B&S recommendation regarding reading the file
Joined: Jan 03, 2007
Jan 09, 2007 07:50:00
I just want to hear what your recommendation is regarding reading the file.
Are you reading everything, like the byte that says number of fields and fieldnames and all of that or are you hardcoding field names and number of fields in each record?
And what about that magic cookie value? are you just reading it and hardcoding like "if(magicCookieValue = 1234) then the file format is ok, else not ok?
Song Jing Lim
Joined: Feb 11, 2003
Jan 09, 2007 18:41:00
For me, I read everything and store to DataSchema javabean object which also store RandomFileAccess object.
I just read the magic cookie but never use it... May be can store the value to properties file then compare with the one read from data file.
Rgds,<br />Song Jing
Don't get me started about those stupid
subject: B&S recommendation regarding reading the file
Question regarding Field Lengths
Interface question B&S
Reading the schema
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014