Jump to content
Sign in to follow this  
ummmmoto

reading file

Recommended Posts

ummmmoto

I have programming experience but am new with autoit. I was wondering how I could use the file functions to open a text file, and have it look for a certain string within the last 50 lines (its a huge text file that constantly updates).

Share this post


Link to post
Share on other sites
BrettF

I have programming experience but am new with autoit. I was wondering how I could use the file functions to open a text file, and have it look for a certain string within the last 50 lines (its a huge text file that constantly updates).

Take a look at these functions in the helpfile:
  • FileRead()
  • _FileReadToArray ()
  • For Loops
  • Ubound
That should get you started.

Share this post


Link to post
Share on other sites
Valuater

Also

FileReadLine()

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
ummmmoto

Also

FileReadLine()

8)

this is the function I had concentrated my effort on before posting. How can I find out how many lines long the file is?

Share this post


Link to post
Share on other sites
Valuater

this is the function I had concentrated my effort on before posting. How can I find out how many lines long the file is?

#include <File.au3>

_FileCountLines ( $sFilePath )

8)


NEWHeader1.png

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  

×