
January 13th, 2012, 02:39 PM
|
|
Contributing User
|
|
Join Date: Aug 2010
Posts: 84
  
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
|