Saving Data in a .txt with javaScript

so i want to make a Browser game where the best Players are Displayed in a ranking my idea was to just write in a .txt on the server but everything i find on Google dosent works at all. anyone has some simple ways of doing that ?