FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with the File() function
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Problem with the File() function
Posted: Wed Nov 22, 2006 06:13 PM

Hi,

The archive "c:\config.sys" exists, but File("c:\config.sys") is returning .F.

For what ?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 80
Joined: Tue Nov 15, 2005 03:38 PM
Problem with the File() function
Posted: Wed Nov 22, 2006 07:39 PM

Hi vilian.
use
....
local ret:=.f.
ret:=File("c:\config.sys")
if ret=.t.
?"ok true"
else
?" bad false"
endif
regards.
hathal.

Posts: 38
Joined: Thu May 11, 2006 07:41 PM
hola vilian
Posted: Wed Dec 13, 2006 12:49 PM

Alguna vez yo tuve ese mismo problema nunca supe porque, pero lo soluciene creando mi propia funcion, es decir intentandolo abrir el archivo
con alguna de las funciones de bajo nivel f*.() como por ejemplo fopen()
los cuales te devuelven un numero dependiendo si tuvo o no exite la apertura del archivo.
Saludos RODOLFO SILVA

sildata@cantv.net

Continue the discussion