home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP16_3.PRG ⌐ª
- *⌐ª Function: ╩╣╙├ Low-Level File ║»╩²┐╜▒┤╬─╝■╡─╙ª╙├╖╢└². ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- CLOSE ALL
- CLEAR
-
- DEFINE WINDOW win16_3 FROM 8,10 TO 14,70 ;
- SHADOW COLOR SCHEME 7
- ACTIVATE WINDOW win16_3
- @ 1,12 SAY "╟δ╩Σ╚δ╘¡╩╝╬─╝■├√: " GET source DEFAULT space(12)
- @ 3,12 SAY "╟δ╩Σ╚δ─┐▒Ω╬─╝■├√: " GET target DEFAULT space(12)
- READ
- RELEASE WINDOWS win16_3
-
- * ┤≥┐¬╘¡╩╝╬─╝■
- ifile = FOPEN(source)
- IF ifile <= 0
- WAIT " ╬▐╖¿┤≥┐¬╘¡╩╝╬─╝■:"+(source) WINDOW
- RETURN
- ENDIF
-
- * ╝╞╦π╬─╝■┤≤╨í
- file_size = FSEEK(ifile,0,2)
- * ░╤╬─╝■╓╕╒δ╥╞╡╜╬─╝■┐¬═╖
- =FSEEK(ifile,0,0)
-
- * ╢┴╚í╬─╝■
- num_read = FREAD(ifile,file_size)
-
- * ╜¿┴ó─┐▒Ω╬─╝■
- ofile = FCREATE(target)
-
- IF ofile <= 0
- WAIT " ╬▐╖¿┤≥┐¬─┐▒Ω╬─╝■:"+(target) WINDOW
- RETURN
- ENDIF
-
- * ╜½╘¡╩╝╬─╝■╨┤╚δ─┐▒Ω╬─╝■
- writing = FWRITE(ofile,num_read)
-
- IF writing = 0
- WAIT " ┐╜▒┤╩º░▄ ! " WINDOW
- ELSE
- WAIT " ┐╜▒┤│╔╣ª ! " WINDOW
- ENDIF
-
- * ╣╪▒╒╘¡╩╝╬─╝■║═─┐▒Ω╬─╝■
- =FCLOSE(ifile)
- =FCLOSE(ofile)
- SET TALK ON
- RETURN