d3mon Posted July 16, 2008 Share Posted July 16, 2008 Hello,1.How can I get number of file lines (.txt)2.How can I read 1st line then 2nd line, etc....Thanks for any answer ! No-life of autoit...what could be better ?LAST SCRIPTS WITH AUTO-IT : CLICK HERE Link to comment Share on other sites More sharing options...
Developers Jos Posted July 16, 2008 Developers Share Posted July 16, 2008 (edited) Have you opened the helpfile and looked at the Filexxx Functions before posting here ? muttley Jos Edited July 16, 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...
abb Posted July 16, 2008 Share Posted July 16, 2008 1.How can I get number of file lines (.txt)_FileReadToArray($sFilePath,$aArray) $iNumLines = $aArray[0]2.How can I read 1st line then 2nd line, etc....For $i = 1 To $aArray[0] $sLine = FileReadLine($sFilePath,$i) Next Link to comment Share on other sites More sharing options...
Developers Jos Posted July 16, 2008 Developers Share Posted July 16, 2008 2.How can I read 1st line then 2nd line, etc.... For $i = 1 To $aArray[0] $sLine = FileReadLine($sFilePath,$i) NextJust a FYI:Doing a FileOpen() and then the for-next loop using fileread(FileHandle) will perform better. 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...
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