Add reading input file

This commit is contained in:
nlitkowski 2021-04-27 21:03:51 +02:00
parent 204154a45c
commit 72f787c21b

17
main.py Normal file
View File

@ -0,0 +1,17 @@
import csv
import sys
import lzma
def main(fname):
print(fname)
with lzma.open(fname, mode="rt", encoding="utf-8") as tsvfile:
reader = csv.reader(tsvfile, delimiter='\t', quoting=csv.QUOTE_NONE)
for item in reader:
pass
if __name__ == "__main__":
if len(sys.argv) < 2:
raise Exception("Input file not provided")
main(sys.argv[1])