write data to end of file

This is a discussion on write data to end of file within the C++ Programming forums, part of the General Programming Boards category; hi..i want to write data to a file. i want to write the data at a specific position in the ...

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    24

    write data to end of file

    hi..i want to write data to a file. i want to write the data at a specific position in the file.

    curently i want to write to end of file. how do i scroll to end of file and write the data there?

    can some one share..thanx
    rahul sk

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Open the file in question with ios_base::app as the open mode in your ofstream object.

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    fseek()
    SetFilePointer()

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 12-06-2008, 02:43 PM
  2. xor linked list
    By adramalech in forum C Programming
    Replies: 23
    Last Post: 10-14-2008, 11:13 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM
  4. Writing and modifying data in a file
    By Micko in forum C Programming
    Replies: 2
    Last Post: 02-17-2005, 03:42 AM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 08:01 PM

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