Got a quick question about how to fill arrays with a loops.
I'm trying to read a large txt file and load its contents line by line into different arrays.
The reason I want to do this is to keep an easy way to tell what line the data came from.
I tried a few different methods to no real success got frustrated, so here I am.
My best bet as to how to do it:
$AAA = FileOpen("C:\Documents and Settings\dhicks\My Documents\TEST.txt")
; Check if file opened for reading OK
If $AAA = -1 Then
MsgBox(0, "Error", "Unable to open file.")
Exit
EndIf
For $Lines = 1 To 6000
$BBB = FileReadLine($AAA)
$CCC = $BBB[$Lines]
Next
For $Lines = 1 To 6000
_ArrayDisplay($CCC)
Next
So what I was aiming or was:
For every line of the file - read that line to get a string then load that line into an array.
If there is an easier way to do something like that i'm all for it.