Computer Science, asked by aadrika17, 1 month ago

anybody please solve this problem.. java programming.. SEND CORRECT ANSWERS ONLY!!​

Attachments:

Answers

Answered by olamideolajuyi19
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