Solved

Question on appending

Posted on 1998-11-13
2
190 Views
Last Modified: 2013-11-20
Hi there,
         How can I append a string into a file say DATA.TXT?

Any help offered is very much appreciated!
0
Comment
Question by:justinng
2 Comments
 

Author Comment

by:justinng
ID: 1324684
Adjusted points to 20
0
 
LVL 4

Accepted Solution

by:
pagladasu earned 20 total points
ID: 1324685
If you are using a CFile object, then open it in write mode, after which you position the file pointer using CFile's member function:
SeekToEnd();
after which you can proceed with normal write. Hope this helps.
Thanks and best of luck.
pagladasu
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Replacement selected text 2 47
conditional code and condition difference 9 65
Problem to open Excel file 15 43
Making an alias 7 52
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now