bills Posted June 30, 2007 Posted June 30, 2007 I need a simple way to count the lines in a textfile and return the number of lines to a variable. Can anyone help? //Bill
i542 Posted June 30, 2007 Posted June 30, 2007 #include <file.au3> $file=FileOpenDialog("Count lines",@MyDocumentsDir,"All files (*.*)") $lines = _FileCountLines($file) MsgBox(64, "Lines", "There are " & $lines & " lines in your file.") I can do signature me.
i542 Posted June 30, 2007 Posted June 30, 2007 (wow...my first actually useful post...yay!)You welcome. I can do signature me.
i542 Posted June 30, 2007 Posted June 30, 2007 (edited) weapon, STOP PADDING YOUR POST COUNTER (even I do it whole year ) AND POST POSTS WHICH HAVE SENSE AND MAKE THEY ARE NOT USELESS! Edited June 30, 2007 by i542 I can do signature me.
weaponx Posted June 30, 2007 Posted June 30, 2007 Actually my post was quite relevant considering the topic starter could not have even glanced at the help file. _FileCountLines Returns the number of lines in the specified file. I mean, I love to help but the forum gets saturated with these questions. This is the easiest scripting language in the world people.
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