Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

writing output to a file

 
AT Lee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 136
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please enclose your code inside the [code] tag to make it more readable.
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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? ;)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic