my dog learned polymorphism*
The moose likes JavaFX and the fly likes Create new file in directory with JavaFX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Create new file in directory with JavaFX" Watch "Create new file in directory with JavaFX" New topic
Author

Create new file in directory with JavaFX

arturas zarkys
Greenhorn

Joined: Jan 26, 2011
Posts: 4
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
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

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.


Mohamed Sanaulla | My Blog
 
jQuery in Action, 2nd edition
 
subject: Create new file in directory with JavaFX