Were you intending to retrieve a file from within a WAR or just a random file on the web server box? The first case is much more interesting than just opening streams.
-ed On 4/15/05, Andrew Thorell <[EMAIL PROTECTED]> wrote: > try{ > File file = new File("text.txt"); > FileReader in = new FileReader(file); > FileWriter out = new FileWriter(file); > } > catch (IOException ex) <<-- could be wrong about the Excpetion here.. > { > } > Sun has a bunch of tutorials on this, also check out the API listings > on Java's website. Best of luck. > > Andrew > > On 4/15/05, Richard Reyes <[EMAIL PROTECTED]> wrote: > > Hello Guys, > > > > I need to access a file from inside an actions class. I will use its > > content as email contents. > > > > Regards > > Richard > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]