USE gkcj
ZAP
s = FILETOSTR("成绩通知单.txt")
n = ALINES(arr, s, 5, 0h0D0A,0h0D,0h0A,0hA1A1)
DIMENSION arr[n/7,7]
FOR i=1 TO ALEN(arr,1)
ALINES(a1, arr[i,4], 5, " ")
ALINES(a2, arr[i,3], 5, ":")
ALINES(a3, arr[i,5], 5, ":")
ALINES(a4, arr[i,7], 5, ":"," ")
DIMENSION a4[5,2]
INSERT INTO gkcj VALUES (a1[1],a1[2],a2[2],a3[2],;
VAL(a4[1,2]),VAL(a4[2,2]),VAL(a4[3,2]),VAL(a4[4,2]),VAL(a4[5,2]))
ENDFOR
SELECT * FROM gkcj