C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 5th, 2010, 10:33 PM
xaysana xaysana is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 12 xaysana Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 4 h 48 m 5 sec
Reputation Power: 0
Save descriptions to txt format file

Hi there,
I just finished writing my project code in c named Shopping list refer to http://forums.devshed.com/c-programming-42/writing-project-shopping-list-655071.html.

Before I start writing a tutorial and submit, I would like to finalise a final code. Pretend that, I have bought 5 items and items had been entered into a form created in C earlier for example:
1. Rice | 2kg | 0.4$ | 0.8$
2. Beef | 2kg | 2$ | 4$
3. Veg | 3kg | 0.2$ | 0.4$
4. Pork | 4kg | 1.5$ | 6$
5. Toilet|misc| 10$ | 10$

Now, a question is that how can I save those descriptions to txt file at time when I close a form please?

Thank you and regards,

Reply With Quote
  #2  
Old January 6th, 2010, 02:23 PM
jwdonahue's Avatar
jwdonahue jwdonahue is offline
Bellevue WA, USA
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: May 2004
Location: Bellevue Washington, USA
Posts: 3,398 jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 6 h 48 m 17 sec
Reputation Power: 886
See http://=http://www.cplusplus.com/re.../fopen/]fopen(), fprintf() and fclose().

And read the Commonly Asked Questins thread at the top of this forum:

http://forums.devshed.com/c-program...ons-179036.html
__________________
My worst nightmare was a pointless infinite loop.
Work in progress; don't poke the curmudgeon!
http://www.odonahue.com/

Reply With Quote
  #3  
Old January 6th, 2010, 10:55 PM
xaysana xaysana is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 12 xaysana Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 4 h 48 m 5 sec
Reputation Power: 0
Quote:
Originally Posted by jwdonahue
See http://=http://www.cplusplus.com/re.../fopen/]fopen(), fprintf() and fclose().

And read the Commonly Asked Questins thread at the top of this forum:

http://forums.devshed.com/c-program...ons-179036.html


Thank you jwdonahue. Site looks so informative.
Regards,

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Save descriptions to txt format file

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap