Jump to content
  • Advertisement
Sign in to follow this  
Sol Blue

[Solved] Name for class that reads and writes ini files

This topic is 3503 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a class called IniReader that makes it easy to load values from an .ini file. Now I'm modifying it so it can also be used to write .ini files, and I'm wondering what I should change the name to. Any suggestions? [Edited by - Sol Blue on December 15, 2008 11:53:12 PM]

Share this post


Link to post
Share on other sites
Advertisement
Call it 'IniFile'.

The class 'IniFile' (from my perspective) is the file, it's not a reader or writer or loader, it is the ini file. Sure, it contains functions to operate on itself: to load a file on the hard drive into the class-instance in memory, to write on the in-memory self, to read from the in-memory self, to save from memory back onto the hard drive. But primarily, the class is the ini file, in memory, and also happens to have functions to work on itself.

Share this post


Link to post
Share on other sites
You could have IniReader and IniWriter. I don't know what language you're using, but IniReader and IniWriter as separate classes would fit well with the .NET base class library.

Share this post


Link to post
Share on other sites
I think I'll use "IniFile"...thanks, Servant of the Lord!

Codeka — two different classes is an interesting idea...in my particular case I think one is just as easy, but thanks for the advice!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!