>what can I use instead of FILETOSTR(). I have this HTML file I want to paste into Oulook, so in Ver6 I say:
>lcBody = FILETOSTR("Myfile.HTM")
>oitem.htmlbody=lcBody
>but in Ver 5 I can't do this. So what can I use?
Sérgio gave you FileToStr, this is StrToFile
function strtofile
lpara tcString, tcFileName
tcString = IIF(EMPTY(tcString),"",tcString)
lnHandle = FCREATE(tcFileName)
IF lnHandle = -1
RETURN .F.
ENDIF
local llSuccess
llSuccess = FWRITE(lnHandle,tcString)
=FCLOSE(lnHandle)
RETURN (llSuccess # 0)
...Y soy feliz, bien feliz, asi lo grito;
Mira, que el mundo sepa, que se sepa:
Soy feliz....
...And I'm happy, quite happy, so do I yell it;
Look, so the world knows it, so be known:
I'm happy...
Ismael Rivera "Oye cosita linda"
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only