Hi All,
This mornning i face new problem while dealing with my file manipulation software.
I'm currently working on file manupulation utility which take 13 CSV (Comma saparators of EXCEL) files as input file and manupulates to create output file.
MY QUASTION:-
HOW I'M GOING TO KNOWN IS FILE IS OPEN OR NOT?
If i used Open function like below,
if(!MyTestFile.Open("ABC.csv",CFile:ModeRead)
{
MyTestFile.Close();
}
but it work if file failed to open
not if file open success fully
REQUIREMENT:-
Now if i want to close a file.if file not open then close give me assertion but before i used Close() i must check whether file already open or not something like given algorithm
Check file is OPEN //Want fucnction to do so,
IF File is OPEN
Close File
ELSE
Continue
_____________________________________________________________________
ALL RELATED HELPS,LINKS,CODE BLOCK,CODES ARE MOST WELCOME