filesyst.h

来自「eC++编译器源码」· C头文件 代码 · 共 28 行

H
28
字号
#pragma FileSystem
#include <SYSTEM.h>
typedef unsigned int File[51];
typedef enum {done, notdone, notsupported, callerror,
                   unknownmedium, unknownfile, paramerror,
                   toomanyfiles, eom, userdeverror} Response;
  void Lookup(File &f, char fileName[], boolean newFile);
  void Close(File &f);
  boolean GetEOF(File &f);
  Response GetResponse(File &f);
  void ReadNBytes(File &f, ADDRESS pBuf, unsigned int count, unsigned int &read);
  /*Lookup/ReadNBytes only can be used to read directories; count must be at least 256*/
  void WriteNBytes(File &f, ADDRESS pBuf, unsigned int count, unsigned int &written);
  void SetRead(File &f);
  void SetWrite(File &f);
  void SetModify(File &f);
  void SetPos(File &f, unsigned int high, unsigned int low);
  void GetPos(File &f, unsigned int &high, unsigned int &low);
  void Length(File &f, unsigned int &high, unsigned int &low);
  void SetLength(File &f, unsigned int high, unsigned int low);
  void Delete(char fileName[]);
  void Rename(char fileName[], char sourceFile[]);
  void GetAttribute(char fileName[], char &out[]);
  void SetAttribute(char fileName[], char in[]);
  void GetDirectory(char &out[]);   /*current directory*/
  void SetDirectory(char in[]);
  void Directory(char fileName[]);     /*create new directory; doesn't set current*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?