A working C program to transfer the contents of a text file to a linked list. Also, contents should be added to the end of the file(through insertion operation of a linked list) as and when a particular input is entered by the user. Similarly, contents(through deletion operation of a linked list) should be deleted from the file as and when a particular input is entered by the user. Also, through a linked list, a particular string can also be searched from the file. The file should also be updated as and when something is added or deleted. The restriction is that the txt file has a format as follows: 112.33.44.45 Baker 101.22.33.21 Parson and so on.. So the program should have a structure that stores the 4 integer parts of the IP address and one string array being the name followed by the IP address.
A working C program to transfer the contents of a text file to a linked list. Also, contents should be added to the end of the file(through insertion operation of a linked list) as and when a particular input is entered by the user. Similarly, contents(through deletion operation of a linked list) should be deleted from the file as and when a particular input is entered by the user. Also, through a linked list, a particular string can also be searched from the file. The file should also be updated as and when something is added or deleted.
The restriction is that the txt file has a format as follows:
112.33.44.45 Baker
101.22.33.21 Parson and so on..
So the program should have a structure that stores the 4 integer parts of the IP address and one string array being the name followed by the IP address.
Step by step
Solved in 2 steps