• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: reading a file form a component NoSuchFileException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading a file form a component NoSuchFileException


  • Subject: Re: reading a file form a component NoSuchFileException
  • From: Travis Britt <email@hidden>
  • Date: Fri, 23 Oct 2009 10:24:32 -0400

I usually do something like:

URL pathURL = ERXFileUtilities.pathURLForResourceNamed("patterns.txt", null, null);
String fileContent = ERXFileUtilities.stringFromURL(pathURL);


tb

On Oct 23, 2009, at 3:10 AM, Gustavo Pizano wrote:
I have this structure: XWSLocalizer.woa>contents>Resources>patterns.txt

and the component its in XWSLocalizer.woa>contents>Resources>java>xws>localizer>components

I have tried: FileInputStream fstream = new FileInputStream ("../../../../Resurces/patterns.txt");
FileInputStream fstream = new FileInputStream("../patterns.txt");
FileInputStream fstream = new FileInputStream(".patterns.txt");
[...]
i was wondering if I put somethign in the Resources folder is there a way to go there with some Wonder or WO class, or somthing like that?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >reading a file form a component NoSuchFileException (From: Gustavo Pizano <email@hidden>)
 >Re: reading a file form a component NoSuchFileException (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: War deploy; maven archetypes problems; web.xml filtering
  • Next by Date: Re: Entity naming
  • Previous by thread: Re: reading a file form a component NoSuchFileException
  • Next by thread: Re: reading a file form a component NoSuchFileException
  • Index(es):
    • Date
    • Thread