Well sorry for not providing enough info but we got to download a file and 
process it. Hence DBMS is out of question. Further more then we would require a 
process to read, parse and insert into DB. It wouldn't be possible to hold lock 
and commit for every record. 

Regards,
Prakash


----- Original Message ----
From: Brett McCoy <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, February 1, 2008 6:46:35 PM
Subject: Re: [c-prog] Inser record in text file

On Feb 1, 2008 3:58 AM, Satya Prasad <satya_prakash_ [EMAIL PROTECTED] com> 
wrote:

> Yes, I agree but is it possible using a single file manipulation. The other 
> way I understand is that I create a temp file and write modified data there 
> or read st.st_size (file size) and re-write the whole modified data. But then 
> assume I have 5 million of data there for processing and memory allocation 
> fails ... (the only help is see is call brk()) or split the file to a limited 
> size and do processing.

If you have 5 million rows of data you should be using a DBMS.

-- Brett
------------ --------- --------- --------- --------- --------- -
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi




      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[Non-text portions of this message have been removed]

Reply via email to