Jump to content
Sign in to follow this  
Phil Viton

read file backwards

Recommended Posts

Phil Viton

Is there an easy way to read a binary file backwards (ie starting from the end of the file)? For example, a pdf (or a tex dvi) file typically contains useful info only at the end, and I'd like to be able to access it. If there isn't a way, and the developers are looking for an easy syntax, then perhaps one could interpret a negative integer in the count parameter of FileRead as an instruction to read that many bytes from the end?

Share this post


Link to post
Share on other sites
TnTProductions

why would you want to read the file backwords?

The helpfile always has answers to your question and if its not in there it is probly not possible

Edited by TnTProductions

"FREEDOM is not FREE""Its a good thing war is so terrible, or we grow too fond of it" -Robert E. Lee[quote]Firestrom: global $warming = False[/quote]My scripts:Desktop Cleaner---->Total Downloads:167;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111111;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;"a wise man once said why use your skills when we have technology"

Share this post


Link to post
Share on other sites
Tomb

_FileReadToArray
_ArrayReverse
_FileWriteFromArray

:)

Share this post


Link to post
Share on other sites
Tomb

@Tom: Won't work on binary type files, only text files.

ah. was hoping we could just throw the binary() function in there somewhere.

:)

Share this post


Link to post
Share on other sites
Hiyoal

I would just read the file and use a _StringReverse conversion to see the directed output.

Hiyoal

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×