I need to delete a file from a Fortran code. I am on ubuntu 12.04, x86_64. I don\'t understand why the procedure described below does not work. Please
Fortran
ubuntu 12.04, x86_64
Why not let Fortran do the work for you? This code is portable (compare cup's comment):
open(unit=1234, iostat=stat, file=file, status='old') if (stat == 0) close(1234, status='delete')