谁能解释下textfile这种数据类型?

解决方案 »

  1.   

    textfile 就是处理文本文件的文件类型。
      

  2.   

    那其它文件的文件类型呢?
    比如说bmp文件和rm文件
      

  3.   

    文本文件的文件类型
    其他的你可以用File of Byte.
    或者你自己定义文件类型
      

  4.   

    var f:textfile;
          begin
    assignfile(f,'c:\applog.txt');//绑定一个文本文件
    Reset(F);//复位
    si:=filesize(f);
    Append(f);//追加一行
        Writeln(f, '灵犀');//写一个字符串
        { insert code here that would require a Flush before closing the file }
        Flush(f);//立即写入 不延迟
            closefile(f);//关闭文件