Howdy folks.
I am need of some help. I have been reading the help file, and looking through here. I have not quite found what I'm looking for.
what I am trying to do is read a the first line of a text file, have Autoit do something with the first line, then come back and get the second line, and repeat.
I have the open file, and read file line down (I think). What I can't figure out is how to make Autoit "do something", then come back and read the next line, and repeat this till its done. I have the filecountlines working.
; begin- count lines in file
#include <File.au3>
$txtfile="url.txt"
$lines = _FileCountLines($txtfile)
; MsgBox(64, "Lines", "There are " & $lines & " lines in your file.")
; end- file line count
; begin- increase filereadline by one
$x= 1
do
$file = FileOpen("url.txt", 0)
$Number = FileReadline($file, $x)
; MsgBox(0, "Line "&$x, $Number)
clipput($Number)
$x +=1
Until $x=$lines
FileClose($file)
; end- done increase by 1
The above is just an example of the snippets of code I have tried. Like I said I think I have the read file, and count lines right, but how do you do "just one at a time"?
If I need to clarify anything please let me know, and please someone help with this. I am just starting to get good at using Autoit, but this is starting to IRK me.
Thanx for any replies.