[fix] Update txt2csv script
import csv
import sys
+
def split(infile, outfile):
with open(infile, 'r') as f:
reader = f.readlines()
@@ -45,11 +46,11 @@ def split(infile, outfile):
temp.append(asdf[1].strip())
o.writerow(temp)
-def main():
+
+def main(outputExtension="out2csv.txt"):
filename = sys.argv[1]
- split(filename, "out.txt")
+ split(filename, outputExtension)
if __name__ == '__main__':
main()
-
