.Net Development
 
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 Languages - More.Net Development

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 13th, 2012, 02:39 PM
MRb1980 MRb1980 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Posts: 84 MRb1980 User rank is Corporal (100 - 500 Reputation Level)MRb1980 User rank is Corporal (100 - 500 Reputation Level)MRb1980 User rank is Corporal (100 - 500 Reputation Level)MRb1980 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 12 m 16 sec
Reputation Power: 4
Reading text file into either array or variable?

Hello there guru's,

I'm tired of having to recompile a project everytime colleagues find spelling errors or wrong labelling within the program, so I have decided to put these values into a *.cfg (config)/*.def(definition) file that sits in the installation directory.

Is there a 'preferred' method of achieving this, as I'm not exactly sure on how to do this - I was going to read the entire file into a single variable then use a delimiter to split them into an array - BUT I would prefer to use an associative array for limiting ambiguity..

Could someone give me an Idea of how to proceed with this..

Thanks,

MRb

Reply With Quote
  #2  
Old February 14th, 2012, 03:01 PM
bunker17 bunker17 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 144 bunker17 User rank is Sergeant (500 - 2000 Reputation Level)bunker17 User rank is Sergeant (500 - 2000 Reputation Level)bunker17 User rank is Sergeant (500 - 2000 Reputation Level)bunker17 User rank is Sergeant (500 - 2000 Reputation Level)bunker17 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 7 h 7 m 25 sec
Reputation Power: 16
http://www.codeproject.com/Articles/5447/NET-Localization-using-Resource-file

I would look into that. Usign the resource file is a fairly clean way to organize text strings
__________________
My blog

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Reading text file into either array or variable?

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