write

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Art Cummings

    #1

    write

    Hello all,

    does the write function have a return type? I've got a write statement that
    isn't writing and I wanted to see if there is a way to do error checking.

    Thanks

    Art

    student.write(r einterpret_cast <char *>(&studentInfo ),sizeof(studen tInfo));


  • Art Cummings

    #2
    Re: write

    >>
    >student.write( reinterpret_cas t<char
    >*>(&studentInf o),sizeof(stude ntInfo));
    >
    What type is student?
    >
    student is an arrray of structures

    Art


    Comment

    • Art Cummings

      #3
      Re: write

      >
      In that case, the line should not compile. There would be no write()
      member
      function.
      >
      >
      Actually it does compile and it writes to disk. The members are populated
      as I loop thru the array, and then I write the array of structures to disk.

      Thanks
      Art


      Comment

      • Art Cummings

        #4
        Re: write

        Besides, quotes should be edited to be minimal (while still preserving
        the original idea, of course).
        Not sure what you mean when you say quotes, do you mean the >?

        Is it really that hard to configure your news reader to automatically
        Juha, i'm using outlook express. Can you tell me how to configure it to put
        the cursor at the end?

        Thanks

        Art


        Comment

        Working...