Presumably, you are capable of creating a linked list and inserting arbitrary numbers. Now, you need to insert fixed numbers from the text file. So, read from the text file. As you read each number, insert it into that linked list.
If you do not know how to read from a text file, then you need to go through documentation or your textbook or whatever to see how to do file i/o. If you can't create a linked list, once again, consult documentation or Google or your book.