File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes want the offset of the string in a file,How? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply Bookmark "want the offset of the string in a file,How?" Watch "want the offset of the string in a file,How?" New topic
Author

want the offset of the string in a file,How?

Muhammad sahil
Greenhorn

Joined: Feb 11, 2012
Posts: 1
Hi,
I am using the getFilePointer method of RandomAccessFile to get the offset of the string, but it returns the current file pointer (offset). I have a string like "moov" in a file, i want to get the offset of this string in a file, also the position of "moov" is change every time. So how can i move this pointer to string in a file and get the offset of this string "moov" in a file.

Thanks and Regards,

sahil

 
 
subject: want the offset of the string in a file,How?
 
Threads others viewed
Interface question B&S
Could anyone help on seek() please?
Reading Record by Rec Number
I know it has been beaten to death, but ...
Data class in Beta
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture