I need to save a String to a text file using Java
        Posted  
        
            by Justin White
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Justin White
        
        
        
        Published on 2009-06-27T19:37:28Z
        Indexed on 
            2010/05/07
            18:38 UTC
        
        
        Read the original article
        Hit count: 240
        
I am a beginner Java programmer. I am attempting to make a simple text editor. I have got the text from the text field into a variable that's a String, called "text".
My question is, how can I save the contents of the "text" variable to a text file?
Thank you!
© Stack Overflow or respective owner