Problem with the File() function

Post Reply
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Problem with the File() function

Post by vilian »

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
User avatar
HATHAL
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh
Contact:

Post by HATHAL »

Hi vilian.
use
....
local ret:=.f.
ret:=File("c:\config.sys")
if ret=.t.
?"ok true"
else
?" bad false"
endif
regards.
hathal.
sildata
Posts: 38
Joined: Thu May 11, 2006 7:41 pm

hola vilian

Post by sildata »

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
Post Reply