Skip to content

Utkarshthgr8/LockedMe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LockedMe.com

Project for Java FSD Phase 1.

Description

This application will

  • Automatically create .FilesFolder/ to create/search/write/delete files from with 10 autogenerated files from File 1 to File 10.
  • Show all files in numerically correct sorted order.
  • Search a file.
  • Create a new file.
  • Add content to a file (create it in case it doesn't exist).
  • Delete a file.
  • Exit out of the application.
  • Handle invalid inputs.

Usage

During the whole usage of the program, you don't have to specify the file extension .txt as it gets added to every query automatically as this program is designed to work only with files with .txt file extension for convenience.

LockedMeMain.java has 3 options:

  1. Show all files.

Shows all the files (will not show folders, only files) in the .FilesFolder/ directory. Will prompt if no files exist in the directory along with the relative path of the directory. (.FilesFolder/ directory gets autogenerated when running the program along with files from File 1 to File 10)

  1. Display menu for operations. (Expert Mode)

Shows further options to operate on files as shown below.

  1. Exit Program.

Exits from the program.

On selecting option 2 (Expert Mode), you will see further options:

  1. Search a file.

    -> Enter the name of the file to search below.

    <- fileName

Prompts whether a fileName.txt exists or not along with relative file path.

  1. Add a file.

    -> Enter the name of the file to add below.

    <- fileName

Prompts whether the fileName.txt file got successfully created or not.

  1. Write to a file.

    -> Enter the name of the file to write below.

    <- fileName

    -> Enter the text you want to write to ./FilesFolder/fileName.txt

    <- Hi! I'd like you to remember this.

Prompts whether the write operation was successful or not. If the fileName does not exist, fileName.txt will get created automatically.

  1. Delete file.

    -> Enter the name of the file to delete below. (Case Insensitive)

    <- fileName

Prompts whether the delete operation was successful or not along with the relative file path.

  1. Main Menu.

Exits to Main Menu prompting the same.

  1. Exit program.

Exits from the program.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages