Thread: blah!

  1. #1
    Unregistered
    Guest

    blah!

    ok i have In_stream.read((char),sizeof(count));
    which i thought would read every byte of a file through a loop i have. However the .bin file i have contains 10k bytes and my prog is only reading 4386 bytes(it goes through the whole file but skips some bytes)?? is there another function i should be using? ugh i'm bout to just convert it to assembly :P

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Have you opened the file with the ios::binary flag?
    zen

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 05-13-2007, 08:55 AM
  2. Returning Multiple Values from a function
    By Eddie K in forum C Programming
    Replies: 6
    Last Post: 03-12-2006, 01:18 PM
  3. Backdooring Instantaneous Radius of Curvature & Functions
    By just2peachy in forum C++ Programming
    Replies: 8
    Last Post: 10-06-2004, 12:25 PM
  4. OS Reality
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 40
    Last Post: 02-15-2002, 01:03 AM
  5. NOTs, ORs and ANDs? HELP!!
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 08-29-2001, 09:28 PM