home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP16_2.PRG ⌐ª
- *⌐ª Function: ╩╣╙├ FGETS() ║»╩²╢┴╚í╬─╝■─┌╚▌▓ó╝╙╔╧╨╨║┼╡─╖╢└². ⌐ª
- *⌐ª DBF & File: EXP16_1.PRG ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- SET SAFETY OFF
- CLOSE ALL
- CLEAR
-
- IF FILE("EXP16_1.PRG")
- COPY FILE EXP16_1.PRG TO TEST.TXT
- ELSE
- RETURN
- ENDIF
-
- handle = FOPEN("TEST.TXT")
- * ┤≥┐¬╬─╝■ TEST.TXT, ┤½╗╪╬─╝■┐╪╓╞┬δ╕° handle
-
- IF handle < 0
- WAIT " ╬▐╖¿┤≥┐¬┤╦╬─╝■, ░┤╚╬╥╗╝ⁿ╝╠╨° " WINDOW
- RETURN
- ENDIF
- I = 1
- J = 0
-
- * ╓≡╨╨╢┴╚í╬─╝■▓ó╝╙╔╧╨╨║┼
- DO WHILE !FEOF(handle)
- @ J,0 SAY STR(I,3)+SPACE(1)+FGETS(handle,SCOLS())
- I = I+1
- J = J+1
- IF J >= 23
- @ SROWS()-1,0 SAY PADC(" ░┤╚╬╥╗╝ⁿ╝╠╨° ",SCOLS())
- =INKEY(0,"HM")
- CLEAR
- J = 0
- ENDIF
- ENDDO
-
- =FCLOSE(handle) && ╣╪▒╒╬─╝■
-
- WAIT " ░┤╚╬╥╗╝ⁿ═╦│÷ ! " WINDOW
- CLEAR
- SET TALK ON
- SET SAFETY ON
- RETURN