Thread: Trouble with I/O

  1. #16
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Ohhh yeah, I dont even think about these things when im using libraries (its easier to relate to to it when its my own code). I should have caught onto that about the constructor when you said it. Thanks Prelude.

    Thanks guys its working

    Edit: Feeling really slow here, you meant Dev-Cpp was in the wrong because of the error I had by putting the pointers on the same line, which caused it to make an actual object instead of a pointer, which should not be able call the constructor because its protected. But it did allow me to use the protected constructor since it compiled, and hence is the fault of Dev-Cpp.

    And of course.. you input less than a byte so of course its going to import 1 byte (1 char) at a time, then format it into binary, so thats why it doesnt matter if I use <</>> that are formatted (for some reason I was thinking you would be importing 8 * 1/0's, which would be more than 1 byte if assigned to a variable, so dont ask me why I was thinking that).

    I really should read the replies and the code more thoroughly or else it'll take forever for me to naturally understand concepts.
    Last edited by Dae; 07-04-2005 at 03:31 AM.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Trouble with lesson 10 (File I/O)
    By sirconnorstack in forum C++ Programming
    Replies: 2
    Last Post: 05-28-2008, 05:20 PM
  2. trouble with file i/o program.
    By Pyroteh in forum C++ Programming
    Replies: 7
    Last Post: 01-09-2007, 10:29 PM
  3. Having file i/o trouble
    By LiKWiD in forum C++ Programming
    Replies: 1
    Last Post: 07-28-2004, 05:20 AM
  4. Replies: 4
    Last Post: 03-02-2003, 09:12 AM
  5. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 05:14 PM