[Verba] Re: Nemesis Coding: Taylor's solution completed
Stuart D. Gathman
stuart at gathman.org
Tue Jan 24 02:47:57 EST 2006
On Mon, 23 Jan 2006, Rebecca Chenette wrote:
> Um,....i opened taylor's approach and I got a blank page. Is that what is
> supposed to happen?
If by "open" you mean run the program (a typically dangerous thing for
Windows to do with an email attachment), then you need to run it from
a command line. The 'stdin' part means to read the "standard input"
as input. At a command prompt, after starting the program, you
would then type/paste the binary, followed by a Control-D. (Or maybe
on Windows it is still F6 like it was in DOS - can someone help
with that Window question?)
Another way of using "standard input" is to enter the data into a file.
For instance, use notepad or whatever to create a test file called
"msg1.txt" with the binary digits. Then run the program with a
"redirect input" like this (the C:\work> is the Windows prompt, which
will vary with what your current directory is):
C:\work> python bin2.py <msg1.txt
This says to feed the contents of "msg1.txt" to the python program as
"standard input".
--
Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
More information about the Verba
mailing list