Jump to content
Sign in to follow this  
Xwolf

[Resolved] File

Recommended Posts

Xwolf

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
Innovative

_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
Xwolf

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.