Redirecting Standard Output

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu