Thread: read/writing to a file without streams

  1. #1
    bobish
    Guest

    read/writing to a file without streams

    When using fstream to read from a file or write to one you have to create some annoying classes which clutter up your code, I wan't something where the only place I will see anything that has anything to do with it is in the functions using it. COuld someone atleast point me in the right direction.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    If you dont like the C++ file IO, then switch to the C version

    fopen()
    fwrite()
    fread()...etc...

    Still fully acceptabe to use in C++...

  3. #3
    bobish
    Guest
    Damn that was a quick response. Thanks where could I find somemore info about these functions?

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by bobish
    Damn that was a quick response. Thanks where could I find somemore info about these functions?
    Read away

    :: Click Me -----> ::

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  3. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM