Right! Here the code I have been working on. The problem is that it stops reading in the single characters of a line at occurrence of a blank although it is supposed to stop reading at the line break.
program read_in
implicit real*8 (a-h,o-z)
character (Len=1),dimension(:,:),allocatable...
My problem is as following: I have an unformatted text file of an unknown number of lines and length of a line.
I would like to read every single character into an array char(i,j) where i is the line-number and j is the character position of that line.
So far I have only achieved to read the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.