'Fortran Error compilation when I would like to change work directory
In a Fortran subroutine I would like to change the work directory and I use
CHDIR("/new/work/directory")
but I have a compilation error
error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( % [ . = =>
[cc] CHDIR("/new/work/directory")
[cc] ------------------------^
I use CHDIR in other part of my code and I have not problems.
Someone can help me.
Solution 1:[1]
I solved my issue with code below
INTEGER I
I = CHDIR("/new/work/directory")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | mnekkach |
