Need to implement a function that accurately determines whether a file is a text file.
The function to check if it is a text file currently relies on the mimetypes standard Python library.
It is difficult to accurately determine if it is a text file using that library.
The function should be implemented perfectly without using the python-magic library.
Need to implement a function that accurately determines whether a file is a text file.
The function to check if it is a text file currently relies on the mimetypes standard Python library.
It is difficult to accurately determine if it is a text file using that library.
The function should be implemented perfectly without using the python-magic library.