summaryrefslogtreecommitdiff
path: root/inputoutput.py
diff options
context:
space:
mode:
Diffstat (limited to 'inputoutput.py')
-rwxr-xr-xinputoutput.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/inputoutput.py b/inputoutput.py
index da22d12..0f0b94a 100755
--- a/inputoutput.py
+++ b/inputoutput.py
@@ -27,6 +27,11 @@ def ingressCSV(location):
# No returned value(s), only closes a file
def egressCSV(row,location):
+
+ # create a new file with -sorted
+ location = location[:-4]+"-sorted"+location[-4:]
+
+
f = open(location,'w')
writehead = csv.writer(f)