Jump to content

Recommended Posts

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
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
Posted

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. :)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...