W
Wybo Dekker
Windows again -(
How can I read a binary file from STDIN?
For example, in linux I can copy some.pdf to test.pdf:
ruby -e 'i=STDIN.read; open("test.pdf","w").write(i)' <some.pdf
in windows I can (and must) use "wb" instead of "w", but how do I specify
STDIN to be binary?
(I need this for a filter working on pdf-files)
How can I read a binary file from STDIN?
For example, in linux I can copy some.pdf to test.pdf:
ruby -e 'i=STDIN.read; open("test.pdf","w").write(i)' <some.pdf
in windows I can (and must) use "wb" instead of "w", but how do I specify
STDIN to be binary?
(I need this for a filter working on pdf-files)