This code will give exception java.lang.OutOfMemoryError: Java heap space
How is that possible or do I not understand something?
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
File used for test is just 100 KB of lorem ipsum
			
			How is that possible or do I not understand something?
			
				B4X:
			
		
		
		Dim s As String = File.ReadString(File.DirApp, "lorem.txt")
    
Do While s.Length > 0   
    s = s.SubString(1)
LoopFile used for test is just 100 KB of lorem ipsum
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		