coil87
Programmer
- Jul 16, 2013
- 2
Hi everyone!
I have a problem in compiling a program i made in fortran because of an error that occur in this line:
str=char(iachar('0')+ord/10)char(iachar('0')+mod(ord,10))'.par'
open(lin,file=str,status='old')
I have defined ord as an integer, and str as a character, and that particular portion of code is insered in a do cicle (do ord=1,10) because i want that the program open the file named 01.par 02.par ... 09.par 10.par
How can i fix it?
Thank you for your answers
I have a problem in compiling a program i made in fortran because of an error that occur in this line:
str=char(iachar('0')+ord/10)char(iachar('0')+mod(ord,10))'.par'
open(lin,file=str,status='old')
I have defined ord as an integer, and str as a character, and that particular portion of code is insered in a do cicle (do ord=1,10) because i want that the program open the file named 01.par 02.par ... 09.par 10.par
How can i fix it?
Thank you for your answers