Raised This Month: $ Target: $400
 0% 

how can i read from file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-18-2013 , 14:54   how can i read from file
Reply With Quote #1

Lets say I have a menu and i have defined item costs :
Code:
#define COST1 100 #define COST2 300 #define COST3 100 #define COST4 1201 #define COST5 1070

And later on I user them e.g.
Code:
client_print(id, print_center, "This item costs : %d", COST1);

I want to make a new file costs.ini and read COST1, COST2, COST3 and COST4 from there , how can I do that ? Could you please provide an example?
Podarok is offline
 



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode