Re: Formatted output and new_line('a') on "\r\n" systems



Richard E Maine wrote:

Elijah Cardon <invalid@xxxxxxxxxxx> wrote:


I think you're asking a question that is more involved than this response.
What I know is that windows gives me "\r\n" for a garden-variety, unformatted write.


I'll give my knee-jerk response here. You are *NOT* talking about
unformatted. You are talking about list-directed formatting, which is
formatted. Some people sloppily refer to list-directed as unformatted.
That terminology is incorrect, and causes confusion.

Unformatted is something completely unrelated. It basically refers to
the data being on the file with the same bits as it has in memory,
rather then being converted to a character form. That conversion to
character form is the formatting. It doesn't matter whether a format
statement is involved or not - it is still formatting.

I realize out it is actually defined, but the definition of unformatted also confuses many that think it describes a stream type of file (i.e. most think of it as devoid of record delimiters as well). This is the first I recall of someone refering to list directed files as "unformatted" but I can understand that confusion as well. I think the term "unformatted" isn't sufficiently clear.

--

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library: http://www.fortranlib.com

Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html

Why are there two? God only knows.


If you want to do the impossible, don't hire an expert because he knows it can't be done.

-- Henry Ford
.



Relevant Pages

  • Re: Formatting a print statement
    ... output is a formatted file and thus you can't do unformatted output to ... Many people incorrectly refer to list-directed formatting as ... possible that the above is a consequence of the confusion that often ...
    (comp.lang.fortran)
  • Re: I/O reading formated files
    ... please note that you appear to have made a common terminology ... confusion (for example, they open a file as "unformatted" because they ... formatting - list-directed formatting and explicit formatting. ... There are many circumstances in which list-directed input does the ...
    (comp.lang.fortran)
  • Re: Weird date formatting
    ... Christine wrote: ... different nationalities in the office where each person enters the date differently: ... To eliminate confusion, for example, I've formatted a ... The only time it works is if you actually enter the short-form month and year, which is kinda missing the point of formatting the cell to begin with. ...
    (microsoft.public.excel.newusers)
  • Re: Taking multiple prices then adding them together...
    ... All your changes seem to do is increase the potential for confusion. ... > namespace directive into function scope. ... I find the new formatting more confusing, ... and expect a newbie would as well (though it certainly depends on the ...
    (comp.lang.cpp)
  • Re: i did it too... :-)
    ... (I cancelled the first post because the formatting was very ordinary) ... Support is included isn't it? ... Watch my blog for something about CDS files. ... Did I mention my client? ...
    (borland.public.delphi.non-technical)