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

ANY IDEA WHY !!!

Status
Not open for further replies.

venado

Programmer
Nov 28, 2000
35
CA
I HAVE A ROUTINE THAT CREATE A xxx.DAT FILE USING LOW LEVEL COMMAND. THE PROBLEM I SOMETIME HAVE IS THAT SUCH A FILE DOES NOT GET CREATED, HOWEVER I DON'T GET ANY ERROR MESSAGE. IT SEEMS THAT GET LOST IN THE PROCESS OF CREATING SUCH A FILE.
BY THE WAY, I'M CREATING THE FILE IN THE SERVER MACHINE.

ANY SUGGESTION!!!!

THANKS
 
Are you creating a variable when you create the file? The example in the help shows:

Code:
gnErrFile = FCREATE('errors.txt')

Then you check the value of the variable:

Code:
IF gnErrFile < 0     && Check for error opening file
   WAIT 'Cannot open or create output file' WINDOW NOWAIT
ELSE  && If no error, write to file
   =FWRITE(gnErrFile , 'Error information to be written here')
ENDIF

See the help file under FCREATE() for more information.

Dave Drdinger
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top