aspose file tools*
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
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
 
 
subject: How to read a property file using Action Script