Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 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