I know strings are limited to 256 characters. How can I read a file record which has greater than 256 characters?
some of the code:
if not fopen 0 "c:\temp.txt" READ
usermsg "can't open file"
exit
endif
while not feof 0
fgets 0 fromfile
strextract dn fromfile "|" 2
strextract firstname fromfile "|" 4
strextract lastname fromfile "|" 5
strextract costcentre fromfile "|" 7
strextract companyname fromfile "|" 9
strextract phonetype fromfile "|" 22
substr extension dn 4 4
The problem I'm having is the record from the file is greater than 256 characters. I can't extract the string phonetype from the string fromfile. This index is at position 507. How can I read further into the record beyond 256?
Thank you
some of the code:
if not fopen 0 "c:\temp.txt" READ
usermsg "can't open file"
exit
endif
while not feof 0
fgets 0 fromfile
strextract dn fromfile "|" 2
strextract firstname fromfile "|" 4
strextract lastname fromfile "|" 5
strextract costcentre fromfile "|" 7
strextract companyname fromfile "|" 9
strextract phonetype fromfile "|" 22
substr extension dn 4 4
The problem I'm having is the record from the file is greater than 256 characters. I can't extract the string phonetype from the string fromfile. This index is at position 507. How can I read further into the record beyond 256?
Thank you