Not sure if this already has been said but when you are working with
text files, it can be easier to use Readers and Writers rather than
streams -- check out the API to see if the methods suit you better. Java
IO gives you ways to convert between Readers and Writers and streams,
for example:
n
thanks to all. i tried using commons IO component. Unfortunately I got an error
accessing the file so I have used the java samples on the tutorial.
thanks anyway
On 4/16/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On 4/15/05, edward griebel <[EMAIL PROTECTED]> wrote:
> > Were you intending
On 4/15/05, edward griebel <[EMAIL PROTECTED]> wrote:
> 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.
If the file in question is inside your webapp, the servlet API lets
yo
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 = ne
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. Be
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]
6 matches
Mail list logo