I'm no mac user, but is the does the cfg file contain PLAIN text?
Also if that file is in the SAME directory
myReadFile.open("./config.cfg"); needs to be myReadFile.open("config.cfg");
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
What did the open file return?
My guess is the program is running in the compiler directory, not the source directory.
Open and write "text.txt" and find out where the file was created.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944