File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird--Data file

 
john luo
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
About Data file Format,
Comments in assignment say:
-------------------------------------------------------------------------
"All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream classes."
-------------------------------------------------------------------------

Does it mean I must use DataInputStream/DataOutputStream to read/write the Data file? Can I use RandomAccessFile, or others, to access Data file?

Thanks
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11833
181
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,

Welcome to JavaRanch and this forum.

All the instructions are telling you is the format of the data. The instructions do not specify what classes you must use.

So check what DataInputStream/DataOutputStream and RandomAccessFile implement - if you can work back to a common denominator then you can use RandomAccessFile.

Regards, Andrew
 
john luo
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you, Andrew
i think i will use RandomAccessFile.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic