MSDN上说: CStdioFile A CStdioFile object represents a C run-time stream file as opened by the run-time functionfopen. Stream files are buffered and can be opened in either text mode (the default) or binary mode.Text mode provides special processing for carriage return–linefeed pairs. When you write a newline character (0x0A) to a text-mode CStdioFile object, the byte pair (0x0D, 0x0A) is sent to the file. When you read, the byte pair (0x0A, 0x0D) is translated to a single 0x0A byte.//看这里 The CFile functions Duplicate, LockRange, and UnlockRange are not supported for CStdioFile. If you call these functions on a CStdioFile, you will get a CNotSupportedException.
{
//加你要的操作
}
CStdioFile
A CStdioFile object represents a C run-time stream file as opened by the run-time functionfopen. Stream files are buffered and can be opened in either text mode (the default) or binary mode.Text mode provides special processing for carriage return–linefeed pairs. When you write a newline character (0x0A) to a text-mode CStdioFile object, the byte pair (0x0D, 0x0A) is sent to the file. When you read, the byte pair (0x0A, 0x0D) is translated to a single 0x0A byte.//看这里
The CFile functions Duplicate, LockRange, and UnlockRange are not supported for CStdioFile. If you call these functions on a CStdioFile, you will get a CNotSupportedException.
CStdioFile没有拷贝构造函数
什么功能。我用来读文件都不会啊
Class1::func(CStdioFile fFile)
{
....
}
CLass1::init()
{
CStdioFile f;
func(f)
...
}
编译的时候就出错了
{
....
}
CLass1::init()
{
CStdioFile f;
func(f)
...
}