Redirecting Standard Output
- Posted by Senator Jul 22, 2017
- 1296 views
Phil F recently posted a neat little utility program: Quick Listing of Routine Declarations which seems to automatically direct the program output from the screen to a file via a switch.
integer outdev -- outdev = 1 -- >> usually to console -- if length(params) < 3 then puts(1,"Usage: eui qindex.ex sourcefile > [optional] keepme.txt\n") end if -- it appears that if the commandline contains " > keepme.txt" -- then outdev is redirected to the file "keepme.txt" although the value of -- outdev is never changed by euphoria commands such as: outdev = open("keepme.txt", w) -- or close(outdev) -- so is ">" an operating system "pipe"?
? Or where is this function explained in the Euphoria Docs?
Regards, Ken