V
Venkat
Hi,
I am using ifstream to open a file read it and then close it.
Sample Code
-------------------
ifStream inFile("file1.txt");
.......
.......
.......
inFile.Close();
Just by issuing the statement inFile.Close() will close all the stream
object or we need to any further statements in order to release the file
completely(like releasing everything related to the file so it is available
for further opening/reading something like inFile.Unlock(), inFile.Clear())
I am getting problem like once i open and then read from the file and then
close it, the application is crashing.
regards,
Venkat
I am using ifstream to open a file read it and then close it.
Sample Code
-------------------
ifStream inFile("file1.txt");
.......
.......
.......
inFile.Close();
Just by issuing the statement inFile.Close() will close all the stream
object or we need to any further statements in order to release the file
completely(like releasing everything related to the file so it is available
for further opening/reading something like inFile.Unlock(), inFile.Clear())
I am getting problem like once i open and then read from the file and then
close it, the application is crashing.
regards,
Venkat