Xref: utzoo comp.lang.c:38354 comp.lang.c++:12897 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!bu.edu!m2c!umvlsi!umaecs!mathews From: mathews@ecs.umass.edu Newsgroups: comp.lang.c,comp.lang.c++ Subject: Parse file and copy words into doubly linked list? Message-ID: <13222.2809ff6e@ecs.umass.edu> Date: 15 Apr 91 19:30:53 GMT Lines: 26 Could anyone suggest how to parse a text file and place each word in a doubly linked list: typdef struct list { char word[20]; struct list *next; struct list *prev; }LIST, *LISTPTR; Yes, this is a programming assignment for a class, and I am not looking for someone to write it for me, just for suggestions. I have written a fcn Parse() which places the words in a dynamically created array using calloc(), but am having problems adapting it for the structure above. Any help would be appreciated. Thanks in advance. M.J. Mathews Univ. of Massachusetts at Amherst mathews@ecs.umass.edu mathews@umaecs typdef struct