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 React Native Module Bridge ExampleWhat is Context in Android and What is the proper…File Operations in Flutter - Read and Write Files -…Flutter File OperationsHow to create a custom native ImageView/View in…Select Image from Camera/Gallery, Save Image in…Download ZIP, Extract it and Show the images file in…Flutter Tutorial - Select an image from Gallery and…How to extend styles in React-Native?Using Custom Fonts in FlutterReusable Widgets & Reusable Custom AppBars inĀ Flutter.Load Local html file into WebView in Flutter. Call…Easy StateManagement in Flutter using Providers,…Firebase Storage - Uploading and Downloading files &…Quick Git Command you can use in your projectProject Treble - Android Version Fragmentation SolvedEfficient use of Widgets in Flutter Container - TipTabbedAppBar in Flutter - Android and iOS.Flutter Tutorial - Upload Image in Flutter Using PHPFlutter DataTable + MySQLFlutter Tutorials - Inherited WidgetsFirebase Push Notifications in FlutterCustom Splash Screen in Flutter for Android and iOS.App Theming in Flutter - Dark Mode/ Light ModeGoogle's Flutter Tutorial - Save Image as String in…