- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I would like to know how to delete a file (located on the hard disk) using visual fortran.
Best regards,
Didace
I would like to know how to delete a file (located on the hard disk) using visual fortran.
Best regards,
Didace
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try the UNLINK library function? In Windows, it does require that the file you want to delete should be closed first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are various ways to do this on Windows.
The DELFILESQQ library routine would be easiest, though you can also use UNLINK. You'll want to add USE IFPORT to the source. One can also do a CLOSE with DISP='DELETE'.
The DELFILESQQ library routine would be easiest, though you can also use UNLINK. You'll want to add USE IFPORT to the source. One can also do a CLOSE with DISP='DELETE'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much, I had done it using the UNLINK function.
Didace
Didace

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page