Advancing internal read

From: Ieong (wk_ieong_at_yahoo.com)
Date: 01/21/05

  • Next message: Richard E Maine: "Re: Advancing internal read"
    Date: 21 Jan 2005 11:27:04 -0800
    
    

    Is it possible that the internal read can be made advancing?

    For example:
    --------------------
    character(len=3) char
    string="abc def ghi"

    do i=1,3
       read(string,*)char
       write(6,*)char
    end do
    -------------------
    Obviously gives the results:

    abc
    abc
    abc

    how about if i want

    abc
    def
    ghi

    instead?


  • Next message: Richard E Maine: "Re: Advancing internal read"

    Relevant Pages

    • Re: Advancing internal read
      ... You want nonadvancing READ, not advancing READ, which is the default. ... WRITE CHAR ... END PROGRAM CONSOLE2 ...
      (comp.lang.fortran)
    • Re: Meaning of the warning
      ... char *f1{ ... What is the meaning of the warning? ... is it safe to return the local pointer value (i.e return abc;) ... are not returning a pointer to local storage, ...
      (comp.lang.c)
    • Re: offsetof
      ... char *abc; ... I have pointer to tmp variable in this structure. ... offsetoffunction to access value stored in abc. ...
      (comp.lang.c)
    • Re: offsetof
      ... char *abc; ... I have pointer to tmp variable in this structure. ... function to access value stored in abc. ... Is it possible using offsetof() function? ...
      (comp.lang.c)
    • Re: Meaning of the warning
      ... char *f1; ... variable `abc`, it correctly complains: ... That isn't a "local pointer value"; it's the value of a local variable, ...
      (comp.lang.c)