ohh my bad... the array should be 1-D with N ptrs for each fgets() we put
returned ptr to array and after getting loop back N times.

On Thu, Aug 4, 2011 at 11:52 PM, mohit verma <[email protected]> wrote:

> How did the "microsoft guy" write tail without using seek()?
> one solution to this : continuously read file line by line and store each
> line in N*MAXLINE 2-D array(aux memory) until we get EOF. Is is the best
> approach?
>
>
> On Thu, Aug 4, 2011 at 11:26 PM, Poised~ <[email protected]> wrote:
>
>> Niteesh,
>> This is really strange. Going by the book, you can never use a pointer
>> unless you assign some memory to it. I will try it on a Linux system and
>> then again confirm it.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/algogeeks/-/58dbQdanDv8J.
>>
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> ........................
> *MOHIT VERMA*
>
>


-- 
........................
*MOHIT VERMA*

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to