Hello I am trying to pipe the input from a data file as command line input using power shell.
I am using the command cat D:\Python\test-inputs.txt| python a3p1.py
The output should be outlying the process from the file. I am reading my stdin input with
while True:
line = sys.stdin.readline()
if not line:
break
words = line.split()
for word in words:
breakdown(database, word)
Can anyone help me
Aucun commentaire:
Enregistrer un commentaire