去看看DELPHI帮助吧:The _lopen function opens an existing file and sets the file pointer to the beginning of the file. This function is provided for compatibility with 16-bit versions of Windows. Win32-based applications should use the CreateFile function. HFILE _lopen( LPCSTR lpPathName, // pointer to name of file to open int iReadWrite // file access mode ); …… 看来你的代码比较老了……
fp=fopen(name,"r");
吧
我觉得
就是以只读方式打开文件
成功返回文件句柄,把这个值赋给s
成功返回文件句柄,把这个值赋给s
int iReadWrite // file access mode
); …… 看来你的代码比较老了……