Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

"file not found" error 2

Status
Not open for further replies.

chista8

Mechanical
Aug 14, 2013
3
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.
 
Replies continue below

Recommended for you

Do you have your "filein" in a subfolder called "bem" Note also, the lack of a file extension

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
1) Look at your open statement. What file is it trying to open?
2) Is the directory path correct?
3) Does that file exist?
 
Thank you very much dear friends.
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.
 
Are there any print or write statements? Which channel are the write statements writing to?

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.
 
Tnx...
I replace above statements with below:
OPEN(1,FILE='FILEIN.TXT')
and I have result.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor