I need to process a text file. There are comma delimiters in the line but the line itself ends with Line Feed(chr(10)).
I therefore cannot use hb_atokens() effectively. I am enclosing my text file.
I am trying to use following code
Code: Select all
#define LF chr(10)
cString := hb_memoread ("FOVOLT_03032020.csv")
if LF $ cString
msginfo (" Found LF ") // shows message
strtran(cString, LF, ',') // doesn't replace
endif
Thanks