with java - create, read from, write to preferences file
with java - create, read from, write to preferences file
- Subject: with java - create, read from, write to preferences file
- From: Matthias Edrich <email@hidden>
- Date: Sun, 21 Dec 2003 12:10:35 +0100
Hi All,
I am writing a simple application which reads an xml file
and prints certain contents to a NSTextView field.
I want to have the application store the path to that
file in a preferences file (preferences file to be located in
the user's preferences folder).
My first question:
How do I create a preferences file for my application
in the preferences folder if no such file exists?
My second question:
How do I read and write contents from and to this preferences file?
For example, I want to get the path to the XML file.
(I store that path within the preferences file)
My third question:
How do I parse an XML with Java? Are there any special
classes already available which help in getting content
from between XML tags?
Quite a few questions. This is my first Cocoa/Java program,
my first attempt to use XCode and only my second "stand-alone"
Java GUI program (for the first one I used swing).
I am a webapp programmer and don't have the slightest
inkling on how to write "real" programs :-))) (ahem,....
I guess I'm am slowly learning - i completed the Java/Cocoa
tutorial in XCode which really helped).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.