How do I give a path to FileOutputStream?

Thành Nguyễn

New member
How do I give a path to FileOutputStream?
Answer
FileOutputStream Constructors
The
first constructor takes a String which contains the path of the file to write to. Here is an example: String path = “C:\users\jakobjenkov\data\datafile. txt”; FileOutputStream output = new FileOutputStream(path);
 

Tìm kiếm

Back
Top