How to create a new file using JAVA ? By Malik | June 25, 2011 0 Comment Hi, For creating a new file using JAVA, use the following code. import java.io.File; public class MainClass { public static void main(String[] a)throws Exception { File myFile = new File("c:\temp\newText.txt"); myFile.createNewFile(); } } More Similar Posts Select Image from Camera/Gallery, Save Image in…Reusable Widgets & Reusable Custom AppBars in Flutter.Easy StateManagement in Flutter using Providers,…Flutter DataTable + MySQLFirebase Push Notifications in FlutterGoogle's Flutter Tutorial - Save Image as String in…App Theming in Flutter - Dark Mode/ Light ModeCreating Dynamic Forms & Get Data from Dynamic Forms…Easily Parse JSON, Create JSON Model Classes, Show…Create an awesome background running Music Player…Socket Programming in Flutter, Build Chat Apps in FlutterShare Data outside the application in Flutter.Google's Flutter Tutorial - Save Image as String in…Local Notifications in FlutterBLOC Pattern in Flutter explained with Real ExampleWorking With Low-Level Isolate APIs in FlutterBar Charts in FlutterPerformance programming in Flutter using IsolatesChat Application in Flutter Using Socket IOParsing RSS Feeds in FlutterOffline Database from WebService using SQFlite in FlutterOpen Urls in Browser, In App, Make Phone Calls, Open…Custom BottomSheet, Custom Snackbar in Flutter using…How to use YouTube APIs and Play YouTube videos in Flutter.Theming your App in Flutter using BLoc, Save & Reload