_FileCountLines() <- No Exist?

Recommended Posts

I get an error when I use the _FileCountLines() function. It is in the help file, etc, so I don't understand why I am getting the error!

Part of the code is:

$countLines = _FileCountLines($file)

\$file is defined as FileOpen('C:\dir\to\txt\file', 0)

Any idea why it isn't working?

Share on other sites

1. You don't say what the error is.

2. You probably aren't including the the file with the function in it. #include <File.au3>

Edited by xcal

Share on other sites

Sorry about that. The problem was that it could not find the file, and you were right, I forgot to include that.

Thank you.

Create an account

Register a new account