anybody please solve this problem.. java programming.. SEND CORRECT ANSWERS ONLY!!
Attachments:
Answers
Answered by
1
Answer:
import java.io.*;
public class TestFiles {public static void main(String[] args) {File textFile = new File("c:\\temp\\supplies.txt");
if (textFile.exists())
{System.out.println("File already exists.");
}
else {System.out.println("File does not exist.");
}}}
Similar questions