home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP16_4.PRG ⌐ª
- *⌐ª Function: ╩╣╙├ FGETS() ║═ FPLUS() ║»╩²╓≡╨╨╢┴╚í╬─╝■▓ó╝╙ ⌐ª
- *⌐ª ╔╧╨╨║┼║≤╓≡╨╨╨┤╚δ┴φ╥╗╬─╝■╡─╖╢└². ⌐ª
- *⌐ª DBF & File: SYS.DBF SYS.FPT ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- SET SAFETY OFF
- CLOSE ALL
- CLEAR
-
- IF FILE("EXP16_4.PRG")
- COPY FILE EXP16_4.PRG TO TEST.TXT
- ELSE
- RETURN
- ENDIF
-
- handle1 = FOPEN("TEST.TXT")
- * ┤≥┐¬╬─╝■ TEST.TXT, ┤½╗╪╬─╝■┐╪╓╞┬δ╕° handle1
- IF handle1 < 0
- WAIT " ╬▐╖¿┤≥┐¬┤╦╬─╝■, ░┤╚╬╥╗╝ⁿ╝╠╨° " WINDOW
- RETURN
- ENDIF
-
- handle2 = FCREATE("TEMP.ACT")
- IF handle2 < 0
- WAIT " ╬▐╖¿╜¿┴ó┤╦╬─╝■, ░┤╚╬╥╗╝ⁿ╝╠╨° " WINDOW
- RETURN
- ENDIF
-
- I = 1
- * ╓≡╨╨╢┴╚í╬─╝■▓ó╝╙╔╧╨╨║┼▓ó╓≡╨╨╨┤╚δ TEMP.ACT
- DO WHILE !FEOF(handle1)
- linestring = STR(I,4)+SPACE(1)+FGETS(handle1,80)
- =FPUTS(handle2,linestring)
- I = I+1
- ENDDO
-
- * ╣╪▒╒╬─╝■
- =FCLOSE(handle1)
- =FCLOSE(handle2)
-
- * ╜½╬─╝■ TEMP.ACT ┐╜▒┤╡╜ SYS.DBF ╡─▒╕╫ó╫╓╢╬╓╨
- USE SYS
- DEFINE WINDOW listwin FROM 1,0 TO 23,79 ;
- SHADOW COLOR SCHEME 5
- APPEND MEMO sysmem FROM TEMP.ACT OVERWRITE
- MODIFY MEMO sysmem NOEDIT WINDOW listwin
-
- RELEASE WINDOWS listwin
- SET TALK ON
- SET SAFETY ON
- RETURN