Re: reading variably sized floats





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.
.



Relevant Pages

  • Re: Bookmark with overwrite function?
    ... >bookmarkand next column of text printed with an underline character. ... >>> text length between the bookmark and the data replacing the bookmark. ... and separate the placeholder from that text with a tab character. ... >> Jay Freedman ...
    (microsoft.public.word.vba.general)
  • Re: text formatting
    ... and insert a tab character between the text and the ... with a "leader" character such as the dots you're trying to insert. ... my problem is for different lenght of mystr even when i use truetype ...
    (microsoft.public.word.vba.general)
  • Re: Passing tab char in command line
    ... I want to pass a tab character as a command line parameter. ... On Windows XP, for example, most people use the shell known as "cmd.exe". ...
    (comp.lang.java.programmer)
  • Re: Special characters and variables in search and replace expressions of regexps
    ... $s contains a three character string, the 'a' character, the TAB character and the 'b' character. ... If you had used a regular expression with capturing parentheses before this point then $r would contain whatever was captured by them. ...
    (perl.beginners)
  • Re: Question On Creating A Table ?
    ... it's important to have a unique character between the number ... After you determine that there is a unique character separating each ... (click "Tabs" if there is a tab character; ...
    (microsoft.public.word.newusers)