I am trying to write a string into a file in my PC, using FOXPRO 2.6. My code is:
_path = "C:\Projetos\SINTEGRA\Sinteg.txt"
HANDLE=FOPEN(_path)
if HANDLE > 0
BYTE = "HI!!!"
=FSEEK(HANDLE,0)
=FWRITE(HANDLE,BYTE)
=FCLOSE(HANDLE)
endif
This code never enter in my IF. Iam sure there is a file in my PC and I´ve already tried using the FCREATE function.
Can you help solve this stupid thing! Iam completly neebie in FOXPRO! =)
_path = "C:\Projetos\SINTEGRA\Sinteg.txt"
HANDLE=FOPEN(_path)
if HANDLE > 0
BYTE = "HI!!!"
=FSEEK(HANDLE,0)
=FWRITE(HANDLE,BYTE)
=FCLOSE(HANDLE)
endif
This code never enter in my IF. Iam sure there is a file in my PC and I´ve already tried using the FCREATE function.
Can you help solve this stupid thing! Iam completly neebie in FOXPRO! =)