Quantcast
Channel: Microsoft Windows* 8.x
Viewing all articles
Browse latest Browse all 389

Writing into a data file

$
0
0

I have the following code which is supposed to write a <LF> between two text strings in the output file (which is a CSV file for reading into Excel):

n1 = '"'//trim(ndprops(1))//char(10)//trim(ndprops(2))//'",'

write(csvu,'(a)') trim(n1)

This is so that text too long for a cell is written on two lines into that cell.

However on examination of the file written, I see 0d0a so that an extra <CR> is written to the file, which means the line is read incorrectly into Excel.

How do I tell Fortran not to write the 0d?


Viewing all articles
Browse latest Browse all 389


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>