You are viewing a single comment's thread from:
RE: How readable are your articles? Let's find out with Python!
Yes, it would make it easier actually, you would just read the text file into a string:
with open('Path/to/file', 'r') as content_file:
test_string = content_file.read()
Thank you for your reply, much appreciated! My python foo isn't very strong, but I'll give it a go and try out. Would be cool to have the ability to test it locally before publishing, just for fun.
Here is the code for this https://gist.github.com/omiq/e3722435dd9cb3b719f33f3970edda4b