Skip to content
Snippets Groups Projects
Commit 9293f0a2 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Close 2 files that we open so we know that the writes have actually happened

parent a734c56a
No related branches found
No related tags found
No related merge requests found
......@@ -760,11 +760,13 @@ def split_file(in_fn, delimiter, out1_fn, out2_fn):
out1.write(line)
line = infile.readline()
line = re.sub('\r', '', line)
out1.close()
line = infile.readline()
while (line != ''):
out2.write(line)
line = infile.readline()
out2.close()
# -----------------------------------------------------------------------------
# Generate External Core for the given program, then compile the resulting Core
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment