CFile Vs CStdioFile
-
Hi Whats the difference between CFile and CStdioFile ?Why we are use CFile and CStdioFile? Thanks Nisha
-
Hi Whats the difference between CFile and CStdioFile ?Why we are use CFile and CStdioFile? Thanks Nisha
Do you feel documentation (
CFile
[^] &CStdioFile
[^]) inadequate on these subjects? Roughly speacking, sinceCStdioFile
inherits fromCFile
we espect the former augmenting the latter functionalities: a quick look at documentation show us two interesting methods (ReadString
andWriteString
) provided only byCStdioFile
. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hi Whats the difference between CFile and CStdioFile ?Why we are use CFile and CStdioFile? Thanks Nisha
CFile deals with any kind of files where CStdioFile deals with TEXT files by default with an implicit convertion of newline character 0x0a into a pair of (0x0d and 0x0a) The two methods, WriteString and ReadString provided in CStdioFile class assumes the delimiters of each line in the file as CRLF and newline. It can also be used for binary files as well, but certain functionality provided by CFile like Duplicate(), LockRange() etc are not supported in CStdioFile.