We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9b44ca commit 3317dfbCopy full SHA for 3317dfb
readFile.py
@@ -1,7 +1,6 @@
1
+""" Read file into strings, removed new line and carriage return then return the strings"""
2
def readFile(file_path):
- """ Read file into strings, removed new line and carriage return then return the strings"""
3
with open(file_path, 'r', 'utf-8') as current_file:
4
texts = current_file.read()
5
text = texts.current_file.replace("\n","").replace("\r","")
6
-
7
return text
0 commit comments