[Interest] Simple doubt on file i/o

André Somers andre at familiesomers.nl
Thu Jun 27 10:04:57 CEST 2013

Op 27-6-2013 8:56, Mandeep Sandhu schreef:
> Hi,
> I wanted to know if I'm doing file i/o the right way in one of my apps.
> I'm writing  a small helper class for one of my applications which is 
> supposed to store data, in the form of key-value pairs, in a file. 
> This is very similar to QSettings but w/o any fancy groups/sections 
> that it provides. So lets assume that I have to use a file based 
> approach only! :)

> (...)
> Is there a simpler way to achieve what I'm doing with a file? I'm 
> assuming the 2 open-close calls in set() are ok as it won't be called 
> very often.
I read nothing that would stop you from using QSettings. Even if it does 
provide "fancy" functions like groups, nothing makes you use those 
functions. And QSettings can work with files for storage just fine.


You like Qt?
I am looking for collegues to join me at i-Optics!

More information about the Interest mailing list