Hi Charles,
I had this little file-reading program that uses parseutil.inc. It used to give me the values correctly, but now it doesn't. Has something changed?
Could you please help me?
uses parseutil
new Textarray t
t.load "dati.txt"
print t.line 7
string a=t.line 7
print t.lineCount
del t
wait
Hi Nicola,
I've checked line read and write. It looks okay.
'06/02/2026
uses parseutil
uses console
Textarray t
t.load "t.txt"
int i
t.line(2)="ok"
for i=1 to 20
string a=t.line i
print i tab a cr
next
print cr cr t.lineCount
wait
del t
PS: found problem with 64bit ! I'm checking ...
Something is wrong...
I tried my sample and yours... yours (photo 1) is fine, mine isn't (photo 2).
I can't figure out why.
The number of lines doesn't seem real to me either
'06/02/2026 - charles
uses parseutil
uses console
Textarray t
t.load "dati.txt"
int i
t.line(2)="ok"
for i=1 to 20
string a=t.line i
print i tab a cr
next
print cr cr t.lineCount
wait
del t
'nico
uses parseutil
uses console
print "prova Nicola"
textarray t
t.load "dati.txt"
string a=t.line 2
print a
a=t.line 7
print cr cr t.lineCount
print "finito"
wait
del t
I am testing it on a 64-bit system :-[
Hi Charles, have you done any checks?
I can't understand why this happens.
Cheers
Hi Nicola,
I think I've fixed the problem. Could you try this attached version of inc/stringutil.inc