| 
			
			Posted By
		 | 
		
			
			Message
		 | 
  	
	
	
		
  			  Chris Burrows
 
  Registered   14/09/2002
 Points   2396
 
  
  		 | 
  		
  		
  		 
  			12th April, 2011 at 18:29:40 - 
  		
			
		
  			
  		 
  			
			
			
			 
			Hello,
 
 
What is the best way to save a string to a file?
 
 
For example, saving GLOBAL STRING A to C:\string.txt
 
 
Thanks!
			
  	    
 
   
  			n/a 
  		
  		 | 
  	
  	
  	
		
  			  GamesterXIII
  
  Registered   04/12/2008
 Points   1110
 
  
  		 | 
  		
  		
  		 
  			12th April, 2011 at 19:31:30 -
  		
			
		
  			
  		  
  			
				List object can do it. I'm sure there are some others that can as well, just check out all the text objects.
			
  	    
 
   
  			n/a 
  		
  		 | 
  	
  	
  	
  	
  	
		
  			  UrbanMonk BRING BACK MITCH
  Registered   07/07/2008
 Points   49768
 
           
     
  		 | 
  		
  		
  		 
  			12th April, 2011 at 19:34:13 -
  		
			
		
  			
  		  
  			
				The best method is the edit box.
 
 
Create an edit box, check off multi-line in the objects setting and uncheck visible at start.
 
 
Then set the edit box to GLOBAL STRING A and use the save action.
 
 
 
Another method is to use the file object, but I can tell you from experience that it's buggy. It can only save so many char's at once, then it cuts off the rest of the data.
 
It happens randomly and it's unpredictable, so I just use the edit box for saving now.
			
  	    
 
   
  			n/a 
  		
  		 | 
  	
  	
  	
		
			| 
				 
			 | 
	    		
				  
	    		 |