Thread: Help specifying a specific size type in C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    OK now I'm having a weird problem. When I try to use file.read(data1, 8) it gives me the string and some other weird data when I try to output it. When I use file.get(data1, 9) it gives me the proper input (at least as far as char goes). Should I not be using file.read()? What is the difference between that and file.get() besides the .get() size indicates n-1.
    Last edited by indigo0086; 06-11-2007 at 03:59 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char Handling, probably typical newbie stuff
    By Neolyth in forum C Programming
    Replies: 16
    Last Post: 06-21-2009, 04:05 AM
  2. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM