[comp.lang.pascal] Trouble while creating file "BACKUP.LOG"

jschippe@cs.ruu.nl (Jeroen Schipper) (03/18/91)

I wrote a backup program in Turbo Pascal that keeps a log file in
the root directory of C: called "BACKUP.LOG". I had no problems
with that, but when the program was run on another computer, the
file could not be created. I got strange errors like "Invalid file
handle". Turbo says in its help mode that this error should never
occur...  When I tried     

    C:>echo >backup.log

from dos, I also got a file creation error. Is "BACKUP.LOG" an
illegal filename? And if so, why?



Jeroen.


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
: Jeroen Schipper,     (31)3405-61733 : "Computer programs do what you   :
: Utrecht University, The Netherlands :  tell them to do, not what you   :
: Electronic mail: jschippe@cs.ruu.nl :  want them to do"                :
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

nate@neutron.lcs.mit.edu (03/19/91)

Jeroen,

	Perhaps the other computer happened to have a directory
named \backup.log.  If so, file creation of a file with the same
name in the root would fail.

Good luck.... nate liskov