reading and writing unsigned chars from a file

This is a discussion on reading and writing unsigned chars from a file within the C++ Programming forums, part of the General Programming Boards category; Where is write_breed's called??...

  1. #16
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Where is write_breed's called??

  2. #17
    Registered User
    Join Date
    Nov 2005
    Posts
    137
    Its not. Thats just a function I made to write the file. I don't call it when I'm running the game. Do I need seperate ifstreams for each file I open or can I reuse the same one somehow?

  3. #18
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    You may need to use the inherited ios::clear method to reuse the object.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading out of and writing into the same file
    By Wiretron in forum C Programming
    Replies: 8
    Last Post: 12-30-2006, 01:04 PM
  2. problem with reading and writing
    By yahn in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2006, 03:38 PM
  3. Replies: 3
    Last Post: 03-04-2005, 01:46 PM
  4. file writing and reading
    By Micko in forum C Programming
    Replies: 8
    Last Post: 01-13-2004, 10:18 AM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 02:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21