473,499 Members | 1,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Properties File in .Net Similar to Java Properties file

Hi All,

Is there any class which provides support file properties file similare to
java Properties?

Basically I looking for reading/writing properties file in C# of format

attrName=Value pair

Thanks in advance
Sachin
Nov 16 '05 #1
2 15626


Sachin wrote:

Is there any class which provides support file properties file similare to
java Properties?

Basically I looking for reading/writing properties file in C# of format

attrName=Value pair


..NET is using XML for such stuff so within the .NET SDK there is support
to store and read application settings from XML configuration files.
If you have a file in a different format perhaps created by some
non-.NET application then you would need to write your own parser or
look around in .NET code repositories on the web.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 16 '05 #2
Sachin wrote:
Hi All,

Is there any class which provides support file properties file similare to
java Properties?

Basically I looking for reading/writing properties file in C# of format

attrName=Value pair


Check the documentation on App.Config and the appSettings section.
Unlike java, a .NET app does not automatically parse your config file.

--
There are 10 kinds of people: those who understand binary and those who
don't.
Nov 16 '05 #3

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

Similar topics

8
11442
by: Paul | last post by:
Hello, I've been reading up on security in Java Applets and whilst I understand the concept, I can't successfully get my applet to read a file on my local machine. I discovered from...
3
6367
by: Simon Wigzell | last post by:
I recently wrote a program with MS Visual Studio C++, sent it off to the client where it didn't run, after some probing I discover they are on a Mac! My program is a MSF interface that is really...
1
4754
by: ¤H | last post by:
Normally we specify the properties for 'java' by the -D option. Is there any alternatives, say reading a property file, rather than manually typing all the properties one by one. I searched...
1
4929
by: nos | last post by:
I have done some searching to no avail. The docs say that there is a file of logging properties, and I found that, but there is also reference to a "user" level of logging properties, which I...
10
3744
by: Nikita A. Visnevski | last post by:
Hi everyone, I am rather new to Java beans. Just picked up a book last night and started reading about them. I am building an application that allows a user to define objects with dynamic...
3
3007
by: ytrewq | last post by:
Should dynamic ("expando") properties be restricted to native and user-defined objects? Or should host objects - such as references to the browser or a plug-in or to the document and its elements -...
10
7339
by: Sunny | last post by:
Hi, I have an old problem which I couldn't solve so far. Now I have found a post in that group that gave me an idea, but I can not fully understand it. The problem is: I'm trying to use a...
7
2583
by: ffmelo | last post by:
I need something like java.util.Properties class... I want to store properties in a text file and to get at runtime. Example in java: text file ------ propertieName1=propertieValue1...
4
3116
by: Yin99 | last post by:
I programmed JAVA for a while and starting C#, and was experimenting with "Properties". Question I have, is what is the benefit? JAVA does not have the concept of properties, so what is JAVA...
0
7130
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
7007
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
7171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6893
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...
1
4918
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
4599
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...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.