It's not a secret anymore!
The moose likes I/O and Streams and the fly likes writing output to a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "writing output to a file" Watch "writing output to a file" New topic

writing output to a file

AT Lee

Joined: Jan 27, 2009
Posts: 1

I'm a Java newbie, baptized by fire and am looking for some assistance regarding what I'm trying to do. I need to write to a text file using output that has been decrypted in my Java app. Following is what I have:

when compiling I get:


newToken and the calls to getProfile, getTime etc... is in another .java file which compiles with no problems. any help is much appreciated!

Balagopal Kannampallil
Ranch Hand

Joined: Oct 18, 2004
Posts: 136

Please enclose your code inside the [code] tag to make it more readable.

SCJP 5.0 and now fighting with ExtJS
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

As much as I would like to tell you, it's a good idea if you find the answer yourself I'll give some hints, though.

Open your javadoc and see the Writer class. Anything that's wrong? ;)

SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
I agree. Here's the link:
subject: writing output to a file
jQuery in Action, 3rd edition