try (
FileInputStream in = new FileInputStream("example.txt");
FileOutputStream out = new FileOutputStream("new_example.txt");
)
{
int c;
while((c = in.read()) != -1) {
out.write(c);
}
}
catch(FileNotFoundException e) {
e.printStackTrace();
}
catch(IOException e) {
e.printStackTrace();
}
برچسب:
نویسنده: پارسا کاظمیان