Sign in to follow this  
Followers 0
Xwolf

[Resolved] File

3 posts in this topic

#1 ·  Posted (edited)

Question:How to get the number of lines in a file?

For example, there is the file "test.txt",which have 3 lines.

So,how can i get the "3"? :)

3Q for everyone :)

Edited by Xwolf

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

_FileCountLines

--------------------------------------------------------------------------------

Returns the number of lines in the specified file.

#Include <File.au3>

_FileCountLines($sFilePath)

From the helpfile, learn to use the helpfile next time ..

Edited by xVivoCity

Share this post


Link to post
Share on other sites

From the helpfile, learn to use the helpfile next time ..

:)

Thanks so much !!!

Ho my god.

I have read the helpfile everyday, but didn't find this function.

I'm very sorry to ask so stupid question. :)

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  
Followers 0