> Hello!
> I want to do a program in c++ that analyse, some text files (logs for
> example) but I'm having a problem doing this:
> I want to Copy one text file to a bi-dimention variable, so that one
> line
> from an text file will be one line of the variable.
Use fgets(); and pass it the name of the array you want to copy the data
into. You're probably best using a Large buffer (if the log-file has
multi-sized lines) and then using a strcpy() or a memcpy() to move the data
from the buffer into the array.
Have Fun - Kev
Kevin Campbell
Sysop of Deimos BBS
E-Mail: Sysop@Deimos.unmanned.co.uk
--- FMail/386 1.02
---------------
* Origin: Mail shipped from Deimos Spaceport (2:259/17)
|