> Is there an equivalent way to read and write java property
> files in dotnet? specifically c++?
I don't know why there _ought_ to be some native C++ method to read Java
property files.
> fgetc just seems wrong ...
Yes.
The loose analog of the Java language on the .Net platform is J#. The J#
group is
microsoft.public.dotnet.languages.jsharp
Someone there should be able to tell you whether or not J# has a something
along the lines of Java's Properties class. If there is, and if you choose
to install J# on a box with .Net installed then you can make use of that
class in any CLS compliant language.
Regards,
Will
Owen Corpening - 23 Jun 2005 14:05 GMT
interop is what it is, I don't write every legacy app I have to deal with, I
just live here. J#? I could write something I just thought if there was
something that would be a superior route, thanks for all your keen insight.
owen
> > Is there an equivalent way to read and write java property
> > files in dotnet? specifically c++?
[quoted text clipped - 18 lines]
> Regards,
> Will
Read about serialization. You can serialize any object implementing
ISerializable or maked with the Serializable attribute, then you can save
the result of that serialization (which is XML) to a file, database or some
other storage. Of course, you can then construct your object from its
serialized representation.

Signature
Un saludo
Rodrigo Corral González [MVP]
FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
Owen Corpening - 23 Jun 2005 14:07 GMT
Oh well that solves that! As if I had never programmed in c++ before ....
I just thought "Hey maybe this bridge is already well-trodden?"
Guess the answer is "write your own".
Thanks for the benefit of your analysis all the same.
owen
> Read about serialization. You can serialize any object implementing
> ISerializable or maked with the Serializable attribute, then you can save
> the result of that serialization (which is XML) to a file, database or some
> other storage. Of course, you can then construct your object from its
> serialized representation.