728x90
def read(filename):
with open(filename) as file:
lines = [line.rstrip() for line in file]
return"\n".join(lines)
https://stackoverflow.com/questions/3277503/how-to-read-a-file-line-by-line-into-a-list
728x90
'공부 (@Deprecated)' 카테고리의 다른 글
| [java] java.lang.IllegalArgumentException: Illegal character in scheme at index 0: localhost ` "s3://...".trim()` (0) | 2023.01.15 |
|---|---|
| [aws] aws emr create-cluster (0) | 2023.01.14 |
| [yarn] logs (sqoop error) (0) | 2023.01.13 |
| [Spark] plan (0) | 2023.01.13 |
| [hadoop] 고가용성(High Availability) & Zookeeper (0) | 2023.01.13 |