Hi,
Could someone please show how to read a text file specified in a command line (ie: <executable name> <file name> )into a dynamically linked list. Each node in the list will store one char.
I know how to read the command line arguments, open the file and write the file to standard output using fgetc. I just dont know how to create a dynamically linked list that adds a new node to the end for each char in the text file. All my (numerous) attempts have failed to work.
Any help would be appreciated. I will post/email what code I have written if so desired.
Piece (piecemaker@start.com.au)
Could someone please show how to read a text file specified in a command line (ie: <executable name> <file name> )into a dynamically linked list. Each node in the list will store one char.
I know how to read the command line arguments, open the file and write the file to standard output using fgetc. I just dont know how to create a dynamically linked list that adds a new node to the end for each char in the text file. All my (numerous) attempts have failed to work.
Any help would be appreciated. I will post/email what code I have written if so desired.
Piece (piecemaker@start.com.au)