SpookMeister Posted January 30, 2008 Share Posted January 30, 2008 Do we have a build-in command to (as the topic states) get the last few lines of a file? I have a few ideas for getting it done, but I'm certain they are not the most efficient way to do it. -Spook [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] Link to comment Share on other sites More sharing options...
weaponx Posted January 30, 2008 Share Posted January 30, 2008 randallc has TailRW somewhere... Link to comment Share on other sites More sharing options...
seandisanti Posted January 30, 2008 Share Posted January 30, 2008 Do we have a build-in command to (as the topic states) get the last few lines of a file?I have a few ideas for getting it done, but I'm certain they are not the most efficient way to do it.-Spookthere are a few ways to do it, _FileReadToArray() will be the easiest to code, but since it still reads the file in and then breaks by lines, you could really do the same thing using FileRead() and StringSplit(), or other string manipulation functions. Link to comment Share on other sites More sharing options...
The Kandie Man Posted January 30, 2008 Share Posted January 30, 2008 Randallc's API Tailhttp://www.autoitscript.com/forum/index.ph...st&p=336438- The Kandie Man ;-) "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire Link to comment Share on other sites More sharing options...
SpookMeister Posted January 31, 2008 Author Share Posted January 31, 2008 Thank you gentelmen [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] 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