>>>#define MAXLINE 65535 >>>handle=fopen("myfile.txt") >>>do while !feof(handle) >>> dimension aLines[iif( type("aLines")="U", ; >>> 1, alen(aLines,1)+1] >>> aLines[alen(aLines,1)] = fgets(handle,MAXLINE) >>>enddo >>>=fclose(handle)Cetin >> >>Assuming you can live with no more than 8K characters per line: >> >>SET MEMOWIDTH TO 8191 >>CREATE CURSOR Temp (Temp M) >>APPEND BLANK >>APPEND MEMO Temp FROM (cTxtFileName) >>LOCAL nNumLines, i >>nNumLines = MEMLINES(Temp.Temp) >>DIMENSION aMyArray[MAX(1,nNumLines)] >>LOCAL i >>FOR i = 1 TO nNumLines >> aMyArray[i] = MLINE(Temp.Temp,i) >>ENDFOR >>USE IN Temp>Hi Ed,