Read a file and return a string. Examples --------- >>> data = tl.files.read_file('data.txt')
(filepath)
| 2311 | |
| 2312 | |
| 2313 | def read_file(filepath): |
| 2314 | """Read a file and return a string. |
| 2315 | |
| 2316 | Examples |
| 2317 | --------- |
| 2318 | >>> data = tl.files.read_file('data.txt') |
| 2319 | |
| 2320 | """ |
| 2321 | with open(filepath, 'r') as afile: |
| 2322 | return afile.read() |
| 2323 | |
| 2324 | |
| 2325 | def load_file_list(path=None, regx='\.jpg', printable=True, keep_prefix=False): |
no outgoing calls
no test coverage detected
searching dependent graphs…