• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

save as text

 
Naf Rash
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a Save JFileChooser but want all files to be saved as textfiles. How do I do this? Could you please provide some examples.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what you mean; can you elaborate?
 
Naf Rash
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well at the moment when a file is saved using this dialog, I can't open it but if I had used this:
"P:\\filename.txt"
then the file is saved and opened through notepad(which I do not specify)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic