473,413 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

reading/writing property files

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

fgetc just seems wrong ...

owen
Nov 17 '05 #1
4 1546
"Owen Corpening" <oc********@acornsys.com> wrote in message
news:us**************@TK2MSFTNGP14.phx.gbl...
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
Nov 17 '05 #2
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


Nov 17 '05 #3
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

"William DePalo [MVP VC++]" <wi***********@mvps.org> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
"Owen Corpening" <oc********@acornsys.com> wrote in message
news:us**************@TK2MSFTNGP14.phx.gbl...
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

Nov 17 '05 #4
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

"Rodrigo Corral [MVP]" <co*********@hotmail.com> wrote in message
news:O3*************@tk2msftngp13.phx.gbl...
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

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: JoKur | last post by:
Hello, First let me tell you that I'm very new to C# and learning as I go. I'm trying to write a client application to communicate with a server (that I didn't write). Each message from the...
2
by: John Salerno | last post by:
I wrote this code just to experiment with writing to and reading from a file. It seems to work fine when writing, but when reading the file, it only prints the filepath to the screen, not the file...
3
by: Nijazi Halimaji | last post by:
Hi I know that what I am asking for is very simple, but as a newbie in VB.NET i have following 2 questions: Eigentlich ist das ja etwas ganz einfaches, aber für mich als VB.NET-Neuling doch...
2
by: Robert Reijntjes | last post by:
Hi, I need to read/write data from/to binary files that have an already defined. This means I can't define classes with the attribute. The files also have arrays with variable length. This...
6
by: arne.muller | last post by:
Hello, I've come across some problems reading strucutres from binary files. Basically I've some strutures typedef struct { int i; double x; int n; double *mz;
4
waynetheengineer
by: waynetheengineer | last post by:
Hello everyone :) I am trying to write VB code for reading filenames and file property values in a specific directory. For example, I have a directory called C:/Bears and in that directory...
1
by: ginni | last post by:
hi i am writing a jython script for websphere JDBC configuration . i want to import the values from the property files bt i m not getting it read fromproperty file. can anybody tell me how to...
16
by: billsahiker | last post by:
I am researching for an upcoming c# .net 2.0 project that may require reading and writing xml files. I don't want to use xmltextreader/ xmltextwriter as I prefer to have lower level file access...
0
Guido Geurs
by: Guido Geurs | last post by:
I'm writing a program that list the contents of a CDrom and also the contents of the ZIP files. When there is a bad Zip file on the CD, the program keeps traying to reed the file and after +- 50...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.