wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes how to read from an specefic  offset of file ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "how to read from an specefic  offset of file ?" Watch "how to read from an specefic  offset of file ?" New topic
Author

how to read from an specefic offset of file ?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post
how i can read from an specefic offset of a file ?



thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41040
    
  43
Check out the java.io.RandomAccessFile class. It allows access to arbitrary offsets in a file.


Ping & DNS - my free Android networking tools app
raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
thank you for reaply.
does j2me has this class ?
i can not find it in java.io in my j2me development environment.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41040
    
  43
Oops, I hadn't noticed that this was in J2ME; my bad. Is FileInputStream available? That has the skip() method, which skips over a specified number of bytes.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to read from an specefic offset of file ?
 
Similar Threads
Byte offset for html
How can I write a new record at the end of random access file of database?
StringBuffer
how to read from a .xls(ms excel) file
how to read from a .xls(ms excel) file