Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foxpro under windows 98

Status
Not open for further replies.

Mehernosh

Programmer
Jun 28, 2001
2
HK
Am getting I/o Failure / Invalid Descriptor when creating
INI File using fwrite function with foxpro under window 98

It works fine with windows 95



Thanks


 
What version FoxPro? (e.g. FP 2.0, FPD 2.5b, FPW 2.6a)
Are you trying to write to a local disk (Floopy, IDE, SCSI, ZIP), or a network drive?

What's the code look like? (Are you writing to an existing file or a "new" one?)

Rick
 
am using foxpro 2.6 for windows
we are creating the an INI file on local hard disk in windows directory using fwrite function

thanks
 
I just ran the following on Win98 SE 4.10.2222 A, P II 120 Mhz, 64MB, under FPW 2.6a (w/ official MS High Speed CPU patch). Output written to a local SCSI drive.

fil_nam = "dummyr.dum"
f_hdl = fcreate(fil_nam)
IF f_hdl >= 0
lcjunk = replicate("1234567890",10)
for ii = 1 to 2500
=fwrite(f_hdl, lcjunk)
endfor
=fwrite(f_hdl, chr(26))
=fclose(f_hdl)
ELSE
WAIT WINDOW "Couldn't get handle"
ENDIF

Rick
 
Is the Windows Directory shared and do you have rights to create files there???? David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top