>Can somebody help me please and excuse me for being thick!
>
>I have a command button and when clicked I have a file that I would like to open on my U: Drive.
>
>I have the syntax:
>
>FOPEN("U:\Help.Txt", 10)
>
>Nothing happens though! Can anybody help me please?
Neil,
Is that the all syntax you tried ? If so probably the file is still open.
close all
lnHandle = fopen('u:\help.txt')
? fgets(lnHandle)
fclose(lnHandle)
Another way (if you don't need lowlevel and VFP version 6 and up:
lcFile = FileToStr('u:\Temp\help.txt') && Got content to a str
*thisform.edtMyEditBox.Value = lcFile
Or :
modi comm 'u:\Temp\help.txt'
etc.etc
Cetin