- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to dump some 2D arrays in a text file, however, I have some very long lines of data and it seems to be automatically advancing a line in the middle of that data, I need to keep them all i a single line
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are evidently using list-directed I/O (with a * format). When you use this, you give up control of where line breaks are inserted (among other things.)
If you have specific requirements on the layout, use an explicit format. You can use G format if you want the individual values displayed similarly to list-directed.
An alternative I don't recommend is to open the output file with a RECL= value that is the maximum line length you desire. This is non-portable.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page