Reading larg File Issue
-
Hi Experts I am reading a 7GB File line by line and i need to write some of it's contantants into two files of 9MB and 6MB in a function, for reading and writing i am using a while loop,but my application is not writing the complete OUT-PUT Files. it seems my application is not able to read the complete In-Put File. My System has only 256MB of RAM and hardly 8 GB Free space in my Hard disk. so can anybody tell me what could be the reason? Thanks in advance RYK
-
Hi Experts I am reading a 7GB File line by line and i need to write some of it's contantants into two files of 9MB and 6MB in a function, for reading and writing i am using a while loop,but my application is not writing the complete OUT-PUT Files. it seems my application is not able to read the complete In-Put File. My System has only 256MB of RAM and hardly 8 GB Free space in my Hard disk. so can anybody tell me what could be the reason? Thanks in advance RYK
Take a look here
Thank you masters!
-
Take a look here
Thank you masters!
-
Hi Experts I am reading a 7GB File line by line and i need to write some of it's contantants into two files of 9MB and 6MB in a function, for reading and writing i am using a while loop,but my application is not writing the complete OUT-PUT Files. it seems my application is not able to read the complete In-Put File. My System has only 256MB of RAM and hardly 8 GB Free space in my Hard disk. so can anybody tell me what could be the reason? Thanks in advance RYK
VC_RYK wrote:
it seems my application is not able to read the complete In-Put File. My System has only 256MB of RAM and hardly 8 GB Free space in my Hard disk. so can anybody tell me what could be the reason?
Are you storing anything other than the current line? If not, I can't imagine RAM or disk space having any relevancy. Can you provide a code snippet that exhibits the problem?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
Take a look here
Thank you masters!
You are suggesting that he memory map a file... a file that is more than twice his available address space...? Peace! N.B. While we do have a 4GB address space on Win32, only 2-3GB of it can be considered available, and even that takes some doing...
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
Hi Experts I am reading a 7GB File line by line and i need to write some of it's contantants into two files of 9MB and 6MB in a function, for reading and writing i am using a while loop,but my application is not writing the complete OUT-PUT Files. it seems my application is not able to read the complete In-Put File. My System has only 256MB of RAM and hardly 8 GB Free space in my Hard disk. so can anybody tell me what could be the reason? Thanks in advance RYK
I vaguely recall that ifstream doesn't work on files over 2GB. You could try the regular CRT buffered IO calls.
Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke