Read data from TXT
Posted: Tue Apr 30, 2019 11:07 am
Hello friends,
I have one little question, please.
How to make the short routine, for READ data from TXT file?
I have in TXT list:
012346
244565
125475
...
And now, I'd like to get these values into the fields:
a[1]=012346
a[2]=244565
a[3]=125475
...
Thank you in advance!
P.S.
In Freebasic for example is this:
filename="C:\DIR\file.txt"
open filename for input as #1
for i=1 to 1000
input #1,ax(i)
next i
close #1
I have one little question, please.
How to make the short routine, for READ data from TXT file?
I have in TXT list:
012346
244565
125475
...
And now, I'd like to get these values into the fields:
a[1]=012346
a[2]=244565
a[3]=125475
...
Thank you in advance!
P.S.
In Freebasic for example is this:
filename="C:\DIR\file.txt"
open filename for input as #1
for i=1 to 1000
input #1,ax(i)
next i
close #1