This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Author

writing output to a file

AT Lee
Greenhorn

Joined: Jan 27, 2009
Posts: 1
Hi,

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!

thanks
-A
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
 
Have you checked out Aspose?
 
subject: writing output to a file
 
It's not a secret anymore!