要讀取一些文字檔案,無論是C還是Pascal,我總是使用以下程式碼段讀取資料,直到EOF: while not eof do begin readline(a); do_something; end;
確定! 回上一頁