// get which file you want to read and write File file = new File("D://test.txt"); try { // check whether the file is existed or not if (file.exists()) { // create a new file if the file is not existed...