Java examples for File Path IO:FileOutputStream
Create FileOutputStream object from String file path
import java.io.*; public class Main { public static void main(String[] args) { //from w ww . j av a 2 s. c om String strFilePath = "C://Folder//demo.txt"; try { FileOutputStream fos = new FileOutputStream(strFilePath); } catch(FileNotFoundException ex) { System.out.println("Exception : " + ex); } } }