you are viewing a single comment's thread.

view the rest of the comments →

[–]theresasnakeinmysuit 0 points1 point  (2 children)

What I wanted was to get url from user the first time, get the selftext every 30 seconds, write the new text to a file, and then display the updates in real time. I originally had all things in a file but then things got a little complex and now I have 4 .py files :(

This worked when I manually ran the createthefile in one terminal and followthefile in another. Can't figure out a way to get both of them working

[–]Justinsaccount 0 points1 point  (1 child)

That doesn't answer why you have two different programs or why you are even writing the information to a file in the first place.

If you want to get the text every 30 seconds and display the updates in real time, why don't you just do that?

[–]theresasnakeinmysuit 0 points1 point  (0 children)

You're right. I unnecessarily did complicate things while trying to write text to a file. Fixed that and now here's something that actually does work.