Add functions description
Add python documentation
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
def readIntFile(filePath):
|
||||
"""
|
||||
Read a matrix file
|
||||
|
||||
:param filePath: File path to read from
|
||||
:return: The matrix in int
|
||||
"""
|
||||
completeFile = []
|
||||
file = open(filePath, 'r')
|
||||
lines = file.readlines()
|
||||
@@ -14,6 +20,12 @@ def readIntFile(filePath):
|
||||
return completeFile
|
||||
|
||||
def readStringFile(filePath):
|
||||
"""
|
||||
Read all lines of a file
|
||||
|
||||
:param filePath: File path to read from
|
||||
:return: Array of all lines in the file
|
||||
"""
|
||||
file = open(filePath, 'r')
|
||||
lines = file.readlines()
|
||||
file.close()
|
||||
|
||||
Reference in New Issue
Block a user