Thread: Reading & Writing files

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    68

    Reading & Writing files

    Hello All, I've searched the forums but didn't really manage to get a grip of what I read, so figured it best to ask. Essentially, how do I write to a file in C? say I want to write a variable to a non existsant file (i.e. the file does not exist just yet). Also, from what I've read it seems that I need to get the size of the file in order to read from it, is this the case and if so how would I go about it?

    Thanks all, you're a great help!
    Last edited by DaveHope; 12-28-2003 at 01:37 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading & Writing files (Error)
    By Blackroot in forum C++ Programming
    Replies: 9
    Last Post: 01-10-2006, 11:55 AM
  2. reading and writing structures to pipes
    By netwizio in forum Linux Programming
    Replies: 3
    Last Post: 01-06-2004, 01:28 AM
  3. Having some trouble with reading from files
    By bluebob in forum C Programming
    Replies: 19
    Last Post: 04-18-2002, 05:29 AM
  4. problem reading files in C
    By angelfly in forum C Programming
    Replies: 9
    Last Post: 10-10-2001, 11:58 AM
  5. Need Advice in reading files
    By jon in forum C Programming
    Replies: 4
    Last Post: 10-07-2001, 07:27 AM