标题: 请教高手! [打印本页] 作者: shorelew@ 时间: 2005-5-24 17:14 标题: 请教高手! # Write the words dos_system demo to the file c:\demo.tmp.
dos_system("echo dos_system demo > c:\\demo.tmp");
# Read file line by line.
while(getline line < "c:\\demo.tmp");
# Type contents into a Pause message.
pause(line);
# Close file.
close("c:\\demo.tmp");
# Delete file.
dos_system("del c:\\demo.tmp");