ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I wanna learn how to store data in text file and be able to modify it and save as well using C++. Its been 3days, I couldn't find help. I hope Im in the right place. I think a simple code will help,not too complicated i mean.thanx in advance,any help will be highly appreciated.
Its not a homework, i am not studying anymore, im making my self busy learning programming stuff, at the end of this week im hoping to learn using mysql as a database with c++. then next week im planning to learn java.i hope you can help me more by that time.thanks a lot,.
dmuffet, I think the point needs to be raised that using text files such as you are suggesting will not allow you to simply read a certain value from a row/column arrangement, modify that 'cell' only and close the file. To modify anything in such a file, you will need to read the entire file, row by row, saving it in memory with appropriate modifications, and then close the file and re-open it for writing. Then re-write then entire content back to the disk file and close it off.
Alternatively, you can rename the original file, open a new file with the original name and write out the modified data to the new file. You could then either remove the original, now renamed, file or simply leave it as a backup file, in the way many text editors do.
I hope this touches on the subtle point of your original question.