How to sync a txt file online and read that file with javascript?

I have a txt file that is on my PC, that txt file gets updated every time a new song plays in my media player. I need a way to sync this txt file somewhere where I can access it over the internet from a website using javascript, but it needs to remain synced to the one on my PC.

Is there any service that can allow me to sync the txt file and have a url that can publicly read the raw text from the file?

I’d like to take the synced text, convert it to a string, and update that every 30 seconds or so on my own website.