Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Check out the java.io.RandomAccessFile class. It allows access to arbitrary offsets in a file.
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.
 
Have you checked out Aspose?
 
subject: how to read from an specefic offset of file ?
 
It's not a secret anymore!