Utility function for reading files. Returns: str: The contents of the file
(filename, charset)
| 239 | |
| 240 | |
| 241 | def readFileSync(filename, charset) -> str: |
| 242 | """ |
| 243 | Utility function for reading files. |
| 244 | Returns: |
| 245 | str: The contents of the file |
| 246 | """ |
| 247 | filename = os.path.normpath(filename) |
| 248 | with open(filename, "r", encoding=charset) as fileHnd: |
| 249 | return fileHnd.read() |
| 250 | |
| 251 | |
| 252 | def existsSync(filename: str) -> bool: |
nothing calls this directly
no outgoing calls
no test coverage detected