This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Create new file in directory with JavaFX  RSS feed

 
arturas zarkys
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one more problem (thankfully this problem is last one)...

How can I create new file with JavaFx ?
For Example, how can I create data.txt file in c:\ directory (ex: c:\data.txt) ?

Can anybody know how to solve this problem ?
 
Mohamed Sanaulla
Bartender
Posts: 3169
34
Google App Engine Java Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
arturas zarkys wrote:I have one more problem (thankfully this problem is last one)...

How can I create new file with JavaFx ?
For Example, how can I create data.txt file in c:\ directory (ex: c:\data.txt) ?

Can anybody know how to solve this problem ?


You can always use Java APIs for that. Check out java.io.File and related APIs in java.io package.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!