Phil Viton Posted May 18, 2008 Share Posted May 18, 2008 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? Link to comment Share on other sites More sharing options...
TnTProductions Posted May 18, 2008 Share Posted May 18, 2008 (edited) 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 May 18, 2008 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" Link to comment Share on other sites More sharing options...
Tomb Posted May 18, 2008 Share Posted May 18, 2008 _FileReadToArray _ArrayReverse _FileWriteFromArray Link to comment Share on other sites More sharing options...
Developers Jos Posted May 18, 2008 Developers Share Posted May 18, 2008 (edited) @Tom: Won't work on binary type files, only text files. Edited May 18, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Tomb Posted May 18, 2008 Share Posted May 18, 2008 @Tom: Won't work on binary type files, only text files.ah. was hoping we could just throw the binary() function in there somewhere. Link to comment Share on other sites More sharing options...
randallc Posted May 18, 2008 Share Posted May 18, 2008 Hi, See my sig TailAPIrw.au or similar? Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
Hiyoal Posted May 19, 2008 Share Posted May 19, 2008 I would just read the file and use a _StringReverse conversion to see the directed output. Hiyoal Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now