permaculture playing cards*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: writing output to a file
 
Similar Threads
Write a program that reads and writes from binary or text files
Exectuion throwing Out of Memory exception
Java: Convert a binary file to "text" and back again.
cannot find symbol IOException in catch phrase
Java operator