getline does not work on HP-UX:

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vivek.astvansh@gmail.com

    getline does not work on HP-UX:

    Hi!

    My code opens up a text file (gets an ifstream object), and then reads
    a line using getline( ) method.

    Interestingly, this code works on Solaris, and Linux, but not on HP-UX
    (version 11.11).

    Please help.

    Thanks.

  • xiao deshi

    #2
    Re: getline does not work on HP-UX:


    try this code:



    vivek.astvansh@ gmail.com 写道:
    [color=blue]
    > Hi!
    >
    > My code opens up a text file (gets an ifstream object), and then reads
    > a line using getline( ) method.
    >
    > Interestingly, this code works on Solaris, and Linux, but not on HP-UX
    > (version 11.11).
    >
    > Please help.
    >
    > Thanks.[/color]

    Comment

    • Jonathan Mcdougall

      #3
      Re: getline does not work on HP-UX:

      vivek.astvansh@ gmail.com wrote:[color=blue]
      > Hi!
      >
      > My code opens up a text file (gets an ifstream object), and then reads
      > a line using getline( ) method.
      >
      > Interestingly, this code works on Solaris, and Linux, but not on HP-UX
      > (version 11.11).
      >
      > Please help.[/color]

      We'd be happy to, but you must provide some code if you expect the
      answer to be something else than "look on line 42".


      Jonathan

      Comment

      Working...