This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android 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: 3151
    
  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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Create new file in directory with JavaFX
 
It's not a secret anymore!