Skip to content

Commit c1a51d9

Browse files
authored
Adding comments
1 parent 2fdfd7b commit c1a51d9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

DataExcelReader.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@ def readExel(fileTxt):
2121
reader.close()
2222
return []
2323

24+
# Convert into array
2425
rows=readExel('input.txt')
2526
print(rows)
27+
28+
# Generate JSON
29+
data=json.dumps(rows)
30+
# print(data)
31+
32+
# Create JSON file
2633
output = open("output.json", "w")
27-
output.write( json.dumps(rows))
34+
output.write(data)
2835
output.close()

0 commit comments

Comments
 (0)