在哪里出现,txt文本在软盘上还是网络上?

解决方案 »

  1.   

    txt问本就是硬盘上,就点一下就出来,怎么办的。
      

  2.   

    unit Unit1;interfaceuses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs, StdCtrls;type
      TForm1 = class(TForm)
        Memo1: TMemo;
        Button1: TButton;
        procedure Button1Click(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
    begin
      Memo1.Lines.LoadFromFile('''');
    end;end.
      

  3.   

    Memo1.Lines.LoadFromFile('''');写对文件名
      

  4.   

    就一个按钮在窗体上,目录下还有个test.txt,点按钮就象双击test.txt一样怎么办?
      

  5.   

    Memo1.Lines.LoadFromFile('Path'+'test.txt');
      

  6.   

    没有其他的控件,就是一个button1,没有memo
      

  7.   

    WinExec('notepad.exe c:\test.txt', SW_SHOWNORMAL);