Read a file line by line in Python - GeeksforGeeks
Python provides inbuilt functions for creating, writing and reading files. There are two types of files that can be handled in python, normal text files and binary files (written in binary language, 0s and 1s). In this article, we are going to study about reading line by line from a file.
https://www.geeksforgeeks.org/read-a-file-line-by-line-in-python/

Python Check If File or Directory Exists
In this tutorial, we will learn how to determine whether a file (or directory) exists using Python. To check this, we use Built-in library functions.
https://www.guru99.com/python-check-if-file-exists.html

파이썬에서 유니코드 스트림 다루기
원문 - Working with unicode streams in Python 번역을 허락해 준 Dave Hall 님께 고마움을 전합니다. 파이썬에서 유니코드를 다룰 때는 일반적으로 str.decode()와 unicode.encode() 메서드를 사용하여 unicode 타입과 str 타입을 상호 변환한다. 아래 예시에서는 'utf-16'으로 작성된 파일을 열어, 수직 탭(vertical tab) 코드포인트를 지운 다음, 'utf-8'로 저장한다. (깨진
http://raccoonyy.github.io/working-with-unicode-streams-in-python-korean/

Remove all whitespace in a string
An alternative is to use regular expressions and match these strange white-space characters too.
https://stackoverflow.com/questions/8270092/remove-all-whitespace-in-a-string
Python Delete File
To delete a file, you must import the OS module, and run its os.remove() function: Remove the file "demofile.txt": import osos.remove("demofile.txt") To avoid getting an error, you might want to check if the file exists before you try to delete it: Check if file exists, then delete it: To delete an entire folder, use the os.rmdir() method: Remove the folder "myfolder": import osos.rmdir("myfolder") Note: You can only remove empty folders.
https://www.w3schools.com/python/python_file_remove.asp


Seonglae Cho