Files
S4-P3-Projet/pcbdevice/utils/savetofile.py
Marc-Antoine Lafreniere 9ef1058012 #24 Create project structure for unit tests
Refactor project's structure
closes #24
2019-02-05 14:16:44 -05:00

11 lines
191 B
Python

"""
Save a two dimension array in a file
"""
def matrixToFile(matrix, fileName):
with open(fileName, 'w') as f:
for x in matrix:
for y in x:
f.write('%s ' % y )
f.write('\n')