Saturday 4 August 2018

python - Importing a text file in Python2.7

I want to import some external files in python. How can I do it?



Will it work with import module or there is some other way to do it?



e.g my file name is Hex.txt.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...