Continuously Update A File
问题 Ultimately I need to make info from the Spotify API available to an app that will display "current song" info, including cue time. So will need to be continuously polling the API, as well as updating the data source the App is polling. I'm still trying to wrap my head around thinking of data in terms of streams as opposed to files. So I came up with this little experiment for how a file can be continuously updated: import itertools for i in itertools.count(start=0, step=1): f = open('info.txt