Quote:
Originally Posted by naan
Hi,
I am trying to process line by line of a file. But I should not be allocating static allocation for reading the contents of the file. The memory should be dynamically allocated. The confusion here is how do I determine the size of each line, put it into a buffer with the memory allocated with the size of the line?
Is there any optimised way to do this?
Thanks,
Anitha
|
Any compelling reason to go for a dynamic solution??
A static solution may not be optimized but a dynamic solution would be expensive in terms of mp units.