Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

reading/writing property files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Owen Corpening - 22 Jun 2005 21:49 GMT
Is there an equivalent way to read and write java property files in dotnet?
specifically c++?

fgetc just seems wrong ...

owen
William DePalo [MVP VC++] - 22 Jun 2005 23:20 GMT
> 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
Rodrigo Corral [MVP] - 23 Jun 2005 11:11 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.