Hi,
On Thursday 18 September 2003 16:53, you wrote:
> Hi,
>
> I have simple questions about file operations.
>
> How can I make a directory in fortran?
> My codes generate thousands of files and I want to put them in a
> directory so that it looks tidy. I have to make a directory before
> running the code 'dir1' and then
> open(21,file='dir1/test0001')
Fortran knows nothing about directories, so this is going to
depend on your implementation.
>
> How can I delete a file in fortran?
> One clumsy way I can think of is to open the file, rewind, and close.
> The file is still there but has lenght 0.
>
Look into Status='Delete' in the close statement,
Ian
|