Skip to content

Commit

Permalink
Merge pull request #10 from Iarrondo/master
Browse files Browse the repository at this point in the history
Update articFileUtils.py to solve issue with creating file
  • Loading branch information
Artic42 authored Jan 24, 2024
2 parents 4b5aa72 + 1a52182 commit d4e7d78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/articFileUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def __init__(self, path, readIt = False):
self.path = path
if readIt:
self.readFile()
else:
lines = []

def readFile(self):
filePointer = open (self.path, "r")
Expand All @@ -49,4 +51,4 @@ def modifyLine(self, lineNumber, line):
self.lines[lineNumber] = line

def lineCount(self):
return len(self.lines)
return len(self.lines)

0 comments on commit d4e7d78

Please sign in to comment.