This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Flex and the fly likes How to read a property file using Action Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "How to read a property file using Action Script" Watch "How to read a property file using Action Script" New topic
Author

How to read a property file using Action Script

Neelima Mohan
Greenhorn

Joined: May 23, 2010
Posts: 27
Hi,

I have a property file (fileProperties.txt) which contains a name value pair like below:

FileLocation1 C:/Test/Lookup.xml
FileLocation2 C:/Test/Multiple/MultiLookup.xml

From my ActionScript code I need to read in the fileProperties.txt and extract the Key/Value pair from this file wherein my key is for eg FileLocation1 & corresponding Value is C:/Test/Lookup.xml.
How do I go about this?

Any help is much appreciated.

Thanks,
Neelima
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Are you trying to read a file on the client machine or the server? If its the client, remember that Flash runs in a sandbox that prevents you doing this unless the swf is registered as trusted.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to read a property file using Action Script
 
Similar Threads
build problems and relative paths
Writing in Properties File form Servlet
Properties file location.
Simple Struts PlugIn Question
Loading property file values to a hash map