How to write & read a string into a text file?

Can you write a string variable in Javascript to a text file and then be able to read it back into the game using the text file? Thank you for your help.

Look into TextAsset, PlayerPrefs and file IO. One of these will be a solution to your problem.