functions to write a file

This is a discussion on functions to write a file within the C++ Programming forums, part of the General Programming Boards category; sir, iam a student,i want to know how to write a function in c++ for saving the given content in ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    2

    functions to write a file

    sir,
    iam a student,i want to know how to write a function in c++ for saving the given content in a file. instead of creating objects again and again using this pointer i have to save the content into the file similarly i have to retrive using this pointer.can u help me. thanks

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    i am guessing this is homework, write some code first and you will find peple more helpful.

    for file operations
    you can use
    fopen() and fclose() for opening and closing the file
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating File Handling Functions
    By td4nos in forum C Programming
    Replies: 6
    Last Post: 06-26-2009, 12:43 PM
  2. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 01:44 PM
  3. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 04:44 PM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 04:39 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