>Hi
>
>I need to import text files (they are email body text) into a memo field of a database. The names and full path of the files are held in an array.
>
>I have tried to do a low level open
>
>store alltrim(attach(x)) to filex
>gnErrFile = FOPEN(&filex)
>
>I get the error 'finction name is missing )'
>
>Where is my mistake. Is there any other way of achieving what I need to do?
>
>Thanks
>
>Colin Northway
Something like :
create cursor eMails (myMails m)
lnFiles = adir(arrTextFiles, 'textfilespath\*.extension')
for ix = 1 to lnFiles
append blank
append memo myMails from ('textfilespath\'+arrTextFiles[ix])
endfor
PS: Fopen() expects a character parameter.
gnErrFile = FOPEN(filex)
Cetin