How to update a text file dynamically

I have a text file in my server which updates dynamically for every 5 min - 10 min. I am trying to read that text file contents.

I want my server to be always connected, So It must be in setup() function. I want update only to my text file which dynamically changes, so it must be loop() function.

How to implement this ? Any Suggestion ?

I want my server to be always connected

Is the Arduino the server? Or, is it a client? Why are you trying to defeat the normal client/server relationship (which does not involve a persistent connection)?