Write a complete java program that: asks the user for a file name tests whether the file exists and tells the user if it does exist asks the user whether it should be deleted. Either delete or do not...


Write a complete java program that:



  1. asks the user for a file name

  2. tests whether the file exists and tells the user

    1.  if it does exist asks the user whether it should be deleted.

      1.  Either delete or do not delete the file based on the user input.



    2. If they dont delete, ask them if they would like to write to the file

      1. If they want to write, ask what they want to write to the file and write it.





  3. Make sure to provide plenty of console output dialog specifying what status/actions are taken at each step.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here