Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/File-input-output/IDL/file-input-output.idl
Normal file
12
Task/File-input-output/IDL/file-input-output.idl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
; open two LUNs
|
||||
openw,unit1,'output.txt,/get
|
||||
openr,unit2,'input.txt',/get
|
||||
; how many bytes to read
|
||||
fs = fstat(unit2)
|
||||
; make buffer
|
||||
buff = bytarr(fs.size)
|
||||
; transfer content
|
||||
readu,unit2,buff
|
||||
writeu,unit1,buff
|
||||
; that's all
|
||||
close,/all
|
||||
Loading…
Add table
Add a link
Reference in a new issue