Hi all, I wrote a program to read some data through standard input and write in a file. the following code works fine in linux. but its giving ArgumentError in windows.
Code:
import sys
orig_source = sys.stdin.read()
file=open('data.txt','w')
file.write(orig_source)
file.close()
please post some solution .
and what is the command in windows for EOF (like Cntrl D in linux)
thanks in advance
Siva
-- http://mail.python.org/mailman/listinfo/python-list
