隨筆 - 6  文章 - 129  trackbacks - 0
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 827240
          • 排名 - 49

          最新評論

          閱讀排行榜

          評論排行榜

          var
              myFile : TextFile;
              text : String;
              sFileName : String;
          begin
              sFileName := 'F:/test.txt';
              AssignFile(myFile, sFileName);
              if FileExists(sFileName) then
                  Append(myFile)
          // 以追加的方式打開文件
              else
                  ReWrite(myFile);

              Writeln(myFile, 'Hello World, By Bob!');
              Writeln(myFile, FormatDateTime('yyyy/mm/dd hh:nn:ss', now));
              CloseFile(myFile);

              ReSet(myFile);

              while not Eof(myFile) do
              begin
                    Readln(myFile, text);
                    showmessage(text);
              end;
             
              CloseFile(myFile);
          end;



          posted on 2010-02-09 15:42 Ke 閱讀(291) 評論(0)  編輯  收藏 所屬分類: delphi
          主站蜘蛛池模板: 阿拉善盟| 瑞丽市| 织金县| 呼图壁县| 西乌珠穆沁旗| 泽库县| 张掖市| 依兰县| 赞皇县| 舞阳县| 开远市| 措美县| 航空| 福海县| 泽普县| 亚东县| 汉源县| 崇仁县| 新疆| 兰坪| 扎囊县| 吉安县| 安徽省| 曲水县| 潮安县| 房产| 剑阁县| 阿拉善左旗| 吉隆县| 七台河市| 太白县| 溧水县| 卢氏县| 浦北县| 永德县| 万山特区| 林西县| 汪清县| 泰和县| 靖江市| 敦化市|