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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Not Found with open statement

Status
Not open for further replies.

shaggz7even

Programmer
Nov 6, 2002
13
0
0
US
MSDN says that using the OUTPUT access method with the OPEN statement will automatically create a new file if not found, why is it then that I am getting a File Not Found error when trying??

help would be appreciated
thanx
 
Does the directory exist already?
Open will indeed create a file, but not a directory as well., so make sure that the directory exists first.
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top