Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Data on different rows in output file

Status
Not open for further replies.

jvl1985

Technical User
Jul 25, 2010
1
NL
hi,

I am new on this forum.
I have a little problem with writing data to output file. I have created a matrix of approximately 20 columns.

However, when I write this matrix to a text file, Fortran puts every row in my matrix on different lines. E.g.,

1. num1 num2 num3 num4 numb5 num6
2. num7 num8 num9

instead of:
1. num1 num2 ... num9

How can I overcome this problem?

Thanks!

Jeroen
 
Can you show us your code for writing the output file?

--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.
 
Are you using a format in your print/write statement? If so, what does it look like?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top