Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- public class Writer1 {
- public static void main(String[] args) {
- try {
- boolean newFile = false;
- File file = new File("meuArquivo.txt");
- System.out.println(file.exists());
- newFile = file.createNewFile();
- System.out.println(newFile);
- System.out.println(file.exists());
- } catch(Exception e){}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement