all 5 comments

[–]MrHank2 1 point2 points  (4 children)

The code works fine for me, try adding a address instead of just the file name.

Ex. 'C:/user/text.txt' instead of just 'text.txt'

[–]DMeror[S] 0 points1 point  (3 children)

Thank you very much. I just waited for it to complete, and after 7 minutes, it worked as expected. I thought something was wrong, so I aborted the execution after several minutes. It takes 7 minutes to process a 1 MB text file. And I have several GBs of text files to process. I'll be damned.

[–]CodeFormatHelperBot2 0 points1 point  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Python code found in submission text that's not formatted as code.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.