How to read a Text file from server and store to a separate variable?