un.建立文件
网络 创建文件;函数返回的串口句柄;文件-创建
You use the function CreateFile to open a device.
函数CreateFile用于打开设备。
The code bellow defined CreateFile and CopyFile two classes, use Command patten and Composite patten log requests, and support undoable operations.
下面的例子定义了 创建文件 和 拷贝文件 两个类,使用命令模式和组合模式记录日志,并实现逆操作。