Posted by Jim Guerber on October 31, 2005 at 12:20:19:
In Reply to: importing DOS Files posted by Jay Hubbell on October 31, 2005 at 11:58:02:
Sure, once the file lands in a comet folder, make your program just do a create. If it is created as a text file, you the create will get an excp=13 which means that the underlying file was discovered to exist and the file was just registered with Comet. A create with just file name, directory and excp= will do the trick....
create 'file', dir='dir', excp=check
.
.
.
check:
if excp=13 goto ItsThere
print 'unexpected error ';excp
.
.
.
As to how to copy the file to the directory, If you cannot make the program that generated the file in the first place put it there, try the (copyfile) mnemonic. Look at the link below.