The program saves the list of people visiting certain places in a text file. It depicts the use of file handling in C.
The C program creates a "Covid19.txt" file to store the list of people and places visited by them so that we can track them if someone is found corona positive in the area.
Download the C file and complile it and then execute it.
- User can save and retrieve the list stored in "Covid19.txt" created by the program. Retrieving list without saving it for the first time will return an empty list without creation of "Covid19.txt".
- The user can perform following
- Introduce user
- Introduce visit to venue
- Remove user
- Check which users have been in a particular place
- Save to file
- Retrieve data from file
- User entries are kept in a linked (ordered alphabetically by name) list with memory allocated when a new person is introduced by the user.
- Storage of user's places is kept in arrays.
- User can set the maximum length for name, place and maximum travels.