Fork this repo, complete as many of the challenges as you can and then submit a pull request.
You have 4 problems to solve.
- Write a shopping list in Notepad and save it as 'shopping.txt'. Write a program to read in the shopping list from the file and display it on the screen.
- Write a program which takes a list of six names and writes them to a file. Check that the file contains the six names on six separate lines.
- Create a file in Notepad which consists of a list of first names. Read in the file, sort it into alphabetical order, then write it back to the file again. Check that your file is now in alphabetical order.
- Create a text file in Notepad of user names and passwords. Ask the user to enter their user name and password. The system should read in the details from the file, then return one of these messages:
- Your login is successful (correct username and password)
- Incorrect password (username exists but password does not match)
- This username does not exist (username does not exist in the file)