Discussion:
Reading .ini-style files
Tim Burgess
2014-06-19 14:57:14 UTC
Permalink
Hi,

Previously, I've used a Boost library class method to read some data files
that are .ini files in all but name. This has worked well, but I've found
out today that the method throws an exception if the targeted file is larger
than 64kb, which is a problem for me.

Does WX 2.9.3 have facilities to perform this task easily and without the
size limit or, if not, can anybody recommend a Mac/Windows cross-platform
library that could help me. Failing this, I guess I'll have to hand-craft
something?

Upgrading my Windows build above 2.9.3 would be a significant amount of
work, due to the changes in dealing with .com objects, so I'm afraid this
does impose a version limit on any proposed solution, at least in the medium
term.

Best wishes.
Tim Burgess
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Eric Jensen
2014-06-19 15:04:53 UTC
Permalink
Hello Tim,

Thursday, June 19, 2014, 4:57:14 PM, you wrote:

TB> Hi,

TB> Previously, I've used a Boost library class method to read some data files
TB> that are .ini files in all but name. This has worked well, but I've found
TB> out today that the method throws an exception if the targeted file is larger
TB> than 64kb, which is a problem for me.

TB> Does WX 2.9.3 have facilities to perform this task easily and without the
TB> size limit or, if not, can anybody recommend a Mac/Windows cross-platform
TB> library that could help me. Failing this, I guess I'll have to hand-craft
TB> something?

wxFileConfig should work. As it uses wxTextFile internally, it should
only be limited by the available memory.

Hth
Eric
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Tim Burgess
2014-06-23 08:02:30 UTC
Permalink
Eric,

Many thanks - I'll give it a try.


Best wishes.
Tim Burgess

-----Original Message-----
From: wx-***@googlegroups.com [mailto:wx-***@googlegroups.com] On Behalf
Of Eric Jensen
Sent: 19 June 2014 16:05
To: Tim Burgess
Subject: Re: Reading .ini-style files

Hello Tim,

Thursday, June 19, 2014, 4:57:14 PM, you wrote:

TB> Hi,

TB> Previously, I've used a Boost library class method to read some data
TB> files that are .ini files in all but name. This has worked well, but
TB> I've found out today that the method throws an exception if the
TB> targeted file is larger than 64kb, which is a problem for me.

TB> Does WX 2.9.3 have facilities to perform this task easily and
TB> without the size limit or, if not, can anybody recommend a
TB> Mac/Windows cross-platform library that could help me. Failing this,
TB> I guess I'll have to hand-craft something?

wxFileConfig should work. As it uses wxTextFile internally, it should only
be limited by the available memory.

Hth
Eric


--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...