home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP16_1.PRG ⌐ª
- *⌐ª Function: ╩╣╙├ FREAD() ║»╩²╢┴╚í╒√╕÷╬─╝■─┌╚▌╡─╖╢└². ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- 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
- file_size = FSEEK(handle,0,2)
- * ╜½╬─╝■╓╕╒δ╥╞╡╜╬─╝■╬▓, ╥╘╗±╡├╬─╝■│ñ╢╚
- file_top = FSEEK(handle,0,0)
- * ╜½╬─╝■╓╕╒δ╥╞╡╜╬─╝■═╖
-
- IF file_size <= 0
- =FCLOSE(handle) && ╣╪▒╒╬─╝■
- WAIT " ┤╦╬─╝■╩╟┐╒╡─, ░┤╚╬╥╗╝ⁿ╝╠╨° " WINDOW
- RETURN
- ELSE
- mystring = FREAD(handle,file_size)
- * ╜½╬─╝■─┌╚▌┤µ╚δ▒Σ┴┐ mystring
- =FCLOSE(handle)
- * ╣╪▒╒╬─╝■
- @ 2,0 EDIT mystring SIZE 20,78 NOMODIFY SCROLL TAB COLOR SCHEME 5
- READ
- ENDIF
-
- CLEAR
- SET TALK ON
- SET SAFETY ON
- RETURN