Click to See Complete Forum and Search --> : Read a input file into a doubly linked list


volcom82
09-24-2003, 04:33 AM
I have an assignment where I'm supposed to make a basic text-editor. It should be able to read from a input-file and save each line in a doubly linked list.
I really don't know how to do this, so I'm asking (desperatley) for some help. Thank you

AdamBrill
09-24-2003, 07:34 AM
If you want to read and write files, the only way is to use a server-side language... What do you mean by "save each line in a doubly linked list"?

volcom82
09-24-2003, 10:59 AM
I'm gonna make a very simple line-based text-editor, the commands to be used is similar to unix' ed. A input file should be read and each line should be saved in a doubly linked list to be able to easily manouevre. The lines should be identified with a line number. I'm to control the "editor" with easy arguments like "d" for removing the current line. Any help appreciated!