T
Tinku
Dear C++'ers
I like to know how we can modify the contents in a file
ex: There is a file.txt
with the following data
Weather=Cold
WhatIDo=SleepOntheBed
to be replaced with
Weather=Sunny
WhatIDo=GoToBeach
The seekp function able to replace the contents but it also
eliminating the further contents in the buffer. Is there any way we
read only one line of the file ata time, adjust the size of this line
to fit the new contents.
For my application putting all the file contents in an array is not
feasible.
Hope I am clear
Waiting for ur replies
Cheers
P
I like to know how we can modify the contents in a file
ex: There is a file.txt
with the following data
Weather=Cold
WhatIDo=SleepOntheBed
to be replaced with
Weather=Sunny
WhatIDo=GoToBeach
The seekp function able to replace the contents but it also
eliminating the further contents in the buffer. Is there any way we
read only one line of the file ata time, adjust the size of this line
to fit the new contents.
For my application putting all the file contents in an array is not
feasible.
Hope I am clear
Waiting for ur replies
Cheers
P