Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!samsung!dali.cs.montana.edu!milton!ogicse!orstcs!bionette.cgrb.orst.edu!duvalj From: duvalj@bionette.cgrb.orst.edu (Joe Duval - Entomology) Newsgroups: comp.lang.c Subject: File manipulation and arrays Message-ID: <19772@orstcs.CS.ORST.EDU> Date: 9 Aug 90 21:03:42 GMT Sender: usenet@orstcs.CS.ORST.EDU Reply-To: duvalj@bionette.cgrb.orst.edu (Joe Duval - Entomology) Distribution: na Organization: Oregon State University - CMBL Lines: 20 Hi, I need to read in some data from a file. Preferably into an array of pointers to char. Then switch the data around and write it back out to the same file. Some questions: I want to have the array to have a dynamic length ie: *array [LINES_IN_FILE]]. BUT, i want this to work for any size file (up to a point) and won't know the number of LINES until run-time. How should I declare this? Should I just use a maximum number for LINES_IN_FILE? Will fputs() overwrite the old data in the file? Thanks -Joe -- Joe Duval duvalj@bionette.cgrb.orst.edu Looking for 62-64 Chevy Nova body parts. I've got a 63 Nova SS forsale.