Hi,
on intel fortran i compile giving the command:
ifort -convert big_endian myfile.f
What is the "convert" command in gfortran or in lahey compilers?
The above didnt work.
What if my filenames have not a common root?
If i have:
GR01.dat
GR07.dat
FR01.dat
FR02.dat
IT01.dat
IT06.dat
........
Is there a way fortan could read one by one all these...
if i dont want to write all the filenames in a .txt file?
Thanx!
Thank you very much
but since i dont want to use microsoft editor like MSword u mentioned..
Do u know an editor i can call with cygwin that will display the result correctly?
I have to read and extract data from a large number of files:
file1.dat
file2.dat
file3.dat
.........
file100.dat
Is there a fast way of reading all these files one at a time?
My simple idea is to write all the filenames in a text file from which i will read a filename at a time. If anyone...
program test
open(50,file='test.dat')
write(6 ,FMT='(I3,/)') 111
WRITE(6 ,FMT='(I3,/)') 222
write(50,FMT='(I3,/)') 111
WRITE(50,FMT='(I3,/)') 222
close(50)
end
In the above, at the screen i see:
111
222
but in the dat file i see:
111222
I use gfortran on cygwin and in a simple code like:
program test
open(50,file='test.dat')
write(50,'(A)') 'firstname'
write(50,'(A)') 'lastname'
close(50)
end
i get:
firstnamelastname
instead of
firstname
lastname
i also tried
write(50,'(A/)')...
Hello,
with the following code, when NRuns becomes large enough e.g. 1000 the program stops at 495th iteration giving the following error:
'The end of the character variable in an internal file I/O statement was detected.'
Does anybody know what that means and if i can perform the iterations...