reading/writing property files

  • Thread starter Thread starter Owen Corpening
  • Start date Start date
O

Owen Corpening

Is there an equivalent way to read and write java property files in dotnet?
specifically c++?

fgetc just seems wrong ...

owen
 
Owen Corpening said:
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
 
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.

--
Un saludo
Rodrigo Corral González [MVP]

FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
 
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
 
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
 
Back
Top