Hi everyone!
I need help building a very simple data compiler which will be used on the terminal. I am using Visual Studio Code as my IDE if that matters.
1. When I run the script on my IDE or call it on my command prompt/powershell, the first thing it will output is: "Please enter the full file path of the txt file!". The file path will be something like: "C:\Users\user1\Downloads\Bus Stop.txt" After I select the file, it should return: "Bus Stop.txt successfully loaded"
This is the file I am loading: Bus Stop.txt
2. After "Bus Stop.txt successfully loaded" appears, the following options for the user to choose should appear:
- SHOW ALL
- "TO BE ADDED"
- "TO BE ADDED"
For example, the user needs to enter 1 to use 1. SHOW ALL.
For now, I just need help with the 1. SHOW ALL. 2 and 3 are just placeholders for later. The SHOW ALL function should just list all the contents of the txt file in the terminal as it is:
ID Name
10009 Bt Merah Int
10011 Bef Neil Rd
10017 Aft Hosp Dr
10018 Outram Pk Stn Exit 6/SGH
***SO ON AND SO FORTH***
Any help is much appreciated! Please add notes in your code too