part 1
This commit is contained in:
@@ -2,8 +2,34 @@
|
||||
|
||||
|
||||
|
||||
def readfile(filepath):
|
||||
def readfile(filepath, printFile):
|
||||
with open(filepath, "r") as file:
|
||||
fileExportBuffer = []
|
||||
|
||||
lines = file.readlines()
|
||||
print(lines)
|
||||
|
||||
|
||||
|
||||
lineNum = 0
|
||||
for line in lines:
|
||||
print(line.strip())
|
||||
|
||||
line = line.strip()
|
||||
fileExportBuffer.append(str(line))
|
||||
lineNum += 1
|
||||
|
||||
print(fileExportBuffer)
|
||||
return fileExportBuffer
|
||||
|
||||
|
||||
def meshBuffer(fileExportBuffer, devlog):
|
||||
meshedbuffer = ""
|
||||
for text in fileExportBuffer:
|
||||
meshedbuffer += text
|
||||
if devlog: print("Meshed :" , meshedbuffer)
|
||||
return meshedbuffer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user