对文本文件操作
有Readln,Writeln,有没有Deleteln如没有,如何覆盖已有的行?

解决方案 »

  1.   

    先帮我搞定这个问题:在ASP 中生成字串: 
       "where Title like %keyword% and title like %keyword% or title like %keyword%"通过一个参数传入存储过程 如何连接到存储过程中原有语句后面???
    参数:
    @KeyWord传入SQL:  "Title like %keyword% and title like %keyword%"如原有: select * form Table1 where id=1 and @KeyWord
      

  2.   

    sunon(童毅) :
      不是说好了晚上给你搞定吗!
      我这现在分不够!兄弟们,对吧?!
      

  3.   

    你用tstringlist或者tstrings很方便操作的,这个对象已经封装好了这些操作了
    var
      strsTmp:TStringlist;
    const
      delLine=5;
    begin
      strsTmp:=TStringlist.Create;
      try
        strsTmp.LoadFromFile('d:\test.txt');
        strsTmp.Delete(delLine);
      finally
        strsTmp.Free;
      end
      

  4.   

    var
      strsTmp:TStringlist;
    const
      delLine=5;
    begin
      strsTmp:=TStringlist.Create;
      try
        strsTmp.LoadFromFile('d:\test.txt');
        strsTmp.Delete(delLine);
        strsTmp.SaveToFile('d:\test.txt');
      finally
        strsTmp.Free;
      end