read/writing to a file without streams

This is a discussion on read/writing to a file without streams within the C Programming forums, part of the General Programming Boards category; When using fstream to read from a file or write to one you have to create some annoying classes which ...

  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,789
    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,789
    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, 11:39 PM
  2. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 04:53 AM
  3. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 11:51 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10: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

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