Jump to content
Sign in to follow this  
FinalVersion

Read Multiple Lines In Txt

Recommended Posts

exodius

Look into the function _FileReadToArray, it has an example that'll show you what to do.

Share this post


Link to post
Share on other sites
exodius

I can do that... But if your helpfile doesn't work you may want to do a fresh reinstall of AutoIt...

#include <file.au3>
Dim $aRecords
If Not _FileReadToArray("error.log",$aRecords) Then
   MsgBox(4096,"Error", " Error reading log to Array     error:" & @error)
   Exit
EndIf
For $x = 1 to $aRecords[0]
    Msgbox(0,'Record:' & $x, $aRecords[$x])
Next

Share this post


Link to post
Share on other sites
FinalVersion

I can do that... But if your helpfile doesn't work you may want to do a fresh reinstall of AutoIt...

#include <file.au3>
Dim $aRecords
If Not _FileReadToArray("error.log",$aRecords) Then
   MsgBox(4096,"Error", " Error reading log to Array     error:" & @error)
   Exit
EndIf
For $x = 1 to $aRecords[0]
    Msgbox(0,'Record:' & $x, $aRecords[$x])
Next
Thanks, but I've tried that a couple times. Its a problem from ie.

Share this post


Link to post
Share on other sites
exodius

Then I guess you're stuck with this...

Although there's surely got to be a reason for why it doesn't work... I would think that would really hinder you to not have that handy to reference.

*Edit - Looks like that doesn't include UDFs though, (like _FileReadToArray)

Edited by exodius

Share this post


Link to post
Share on other sites
AlmarM

Check my _FileFindString UDF in my signature ^_^

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

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.