> For the complete documentation index, see [llms.txt](https://junho85.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://junho85.gitbook.io/til/01.developer/python/line_by_line.md).

# line\_by\_line

## read line by line

```
f = open("list.txt", "r")
for line in f:
  print(line)
f.close()
```

개행을 제거 하려면 line.rstrip()

## References

* [Python File Open](https://www.w3schools.com/python/python_file_open.asp)
