------- Comment #1 from dfranke at gcc dot gnu dot org 2009-12-20 15:07 ------- Try with a proper path, i.e. without the '~'. Replacement of special characters or wildcards is done on the shell level, not within the application.
To place a file in the home directory of the user, use the intrinsic GET_ENVIRONMENT_VARIABLE to get the value of HOME: CHARACTER(len=255) :: homedir CALL GET_ENVIRONMENT_VARIABLE("HOME", homedir) OPEN(unit=101, file=TRIM(homedir) // '/Moti.txt', status='REPLACE') -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42443