Skip to main content
gamedev.net
🔒 Locked

stream redirection

Started by vonsatan Feb 22, 2003 at 6:03 AM 0 replies 200+ views
Original Post
vonsatan
vonsatan
hi, I''m using strstreambuf and ostream objects to print into my console and im wanting to implement a command to list the directory contents. However I cant find any useful functions. Im using something like: system("dir") but that just loses the focus, so I tried to redirect the stdout to print to the same stream as the console but i cant get that to work, any suggestions?
Blah....
niyaw
niyaw
findfirstfile will get you there easier than redirecting dir''s output.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.