Hi all,I have a problem with the axlGetAttachment function.This is what I do...
a=axlGetAttachment("testFile.txt" 'file)renameFile(a->data "MyTestFile.txt") - this is to get the file saved into the working folderp_myFile = infile("MyTestFile.txt") while(_text=lineread(p_myFile ) println(_text)); end whileclose(p_myFile)
The problem is, when the attachement if fetched back from the database, it adds a NUL character at the end of the file.In notepad++, it shows as a NUL and in Wordpad it shows as a blankspaceWhen the script above is run, it halts with an error:-
(("REMARKS_AR1" "testing this out,,"))E- E- SYNTAX ERROR found at line 6 column 1 of file MyTestFile.txtE- *Error* lineread/read: syntax error encountered in inputERROR
Any idea on how to handle this?
Vijay Anandh Vela
while(gets(_text p_myFile )
Works great now...Thanks Dave...
Regards,Vijay Anandh Vela