Re: reading variably sized floats
- From: Terence <tbwright@xxxxxxxxx>
- Date: Thu, 22 Jan 2009 21:26:45 -0800 (PST)
Eric wrote:
...
Formatting got f-ed up. It's supposed to be the f5.2 specifier.
In the input file the line being read is:
Ref.<sp>Conc.<tab>[some float]
Does '11x' differentiate between space and tab? (does a tab get
counted as a space)?
The tab character is just a character and is counted as 1 when using
the nX ( or the nA(m) or An) format field specifier.
Most COMPILERS will adjust for the tab character in the SOURCE
program, but during execution of a fortran program. an input
controlled by an "An" or "nX" specifier will just read or skip
characters, respectively
It is extremely tricky to read strings containing tab, backspace,
delete, control-Z, escape and a few more in the upper ascii table,
unless you read in BINARY mode and decide what a TAB character is
expected to mean to you in this data, and process the string character
by character. See the Post on "inputting the ephemerides". It's almost
exactly the same problem.
.
- Follow-Ups:
- Re: reading variably sized floats
- From: Richard Maine
- Re: reading variably sized floats
- References:
- reading variably sized floats
- From: Eric
- Re: reading variably sized floats
- From: glen herrmannsfeldt
- Re: reading variably sized floats
- From: Eric
- reading variably sized floats
- Prev by Date: Re: reading variably sized floats
- Next by Date: Re: inputting the ephemerides
- Previous by thread: Re: reading variably sized floats
- Next by thread: Re: reading variably sized floats
- Index(es):
Relevant Pages
|