"file not found" error
"file not found" error
(OP)
Hello everyone!
When I compile the program that writing with fortran, errors and warnings are 0 but after executing and entering the name of input file, I receive this error message:
forrt1: severe(29): file not found, unit 5, file c:\useres\...\bem\filein
image PC routine line source
BEM.exe 0041F089 unknown unknown unknown
incrementally linked image--PCcorrelation disabled.
press any key to continue
Whereas input file and program file are saved in unit folder.
I don't have so much experience with Fortran. please guidance me.
Thank you.
When I compile the program that writing with fortran, errors and warnings are 0 but after executing and entering the name of input file, I receive this error message:
forrt1: severe(29): file not found, unit 5, file c:\useres\...\bem\filein
image PC routine line source
BEM.exe 0041F089 unknown unknown unknown
incrementally linked image--PCcorrelation disabled.
press any key to continue
Whereas input file and program file are saved in unit folder.
I don't have so much experience with Fortran. please guidance me.
Thank you.





RE: "file not found" error
TTFN

FAQ731-376: Eng-Tips.com Forum Policies
Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers
RE: "file not found" error
2) Is the directory path correct?
3) Does that file exist?
RE: "file not found" error
write, read and open statements are:
WRITE(*,'(A)')'NAME OF INPUT FILE(MAX. 10 CHART.)'
READ(*,'(A)')FILEIN
OPEN(INP,FILE=FILEIN,STATUS='OLD')
that INP is specific.
I replace FILEIN in open statement with directory path (file='c:/users/.../bem/filein) but I have not result.
RE: "file not found" error
Is it *? If it is *, you should get the output on the terminal. But if you are just double clicking on the executable, it will run, flash up and disappear. You need to open up a command prompt and run it from there to see the result.
If it is a number or a variable, look for the open statement with that number. That will tell you which file it is writing to.
RE: "file not found" error
I replace above statements with below:
OPEN(1,FILE='FILEIN.TXT')
and I have result.