写数据到TXT文档

 1 static void writeFile()
 2 {
 3   AsciiIo diskFile;
 4   Filename diskFileName;
 5   Str line;
 6   Container c;
 7   ; 
 8   c = [1, "MyText", 2, "HisText"];
 9  
10   diskFileName = "c:\\test.txt";
11  
12   diskFile = new AsciiIo(diskFileName,'W');
13   diskFile.outRecordDelimiter('\r\n');
14   diskFile.outFieldDelimiter(";");
15   diskFile.writeExp(c);
16 }
posted @ 2012-08-30 11:24  Sprite.z  Views(143)  Comments(0Edit  收藏  举报