引用:
原帖由 HAHAKA 於 25-10-2008 20:29 發表 
求求你地幫下我既cit coursework啦...
我個program..
唔識點read...下星期就要交..
我基本野做到最後先知read錯野
第1個file既fornat係
001
mary
CDBACBDDADABCABDACABAD
而個model ans既txt檔入面既form ...
又多一位應屆會考生... (我都係,交左功課la~~)
assign(FileV,FileName);
reset(FileV);
i := 0;
while not eof(FileV) do
begin
i := i + 1;
readln(FileV,sch_name[(i)]);
readln(FileV,P_name[(i)]);
readln(FileV,P_Ans[(i)]);
end;
assign(KeyFile,F2);
reset(KeyFile);
reset(FileV);
t := 0;
while not eof(KeyFile) do
begin
t := t + 1;
readln(KeyFile,AnsKey[t]);
read(FileVariable,P_ans[t]);
end;
close(KeyFile);
Close(FILEV);
I should have more info about your program...
[
本帖最後由 arararchchch 於 2008-10-25 21:33 編輯 ]