Adds a text file to a compressed zip archive.
	  	
	  
		
	    	
	    	 Syntax:  | 
	    	
	            | 
					DlxFile.AddText(name, text)
				 | 
	   	    
	    	
	     
	    
		Parameters
      
		
			
				
					
						| Parameter | 
						Description | 
					
					
						| name | 
						Name with which the text must be stored in the compressed zip archive. | 
					
					
						| text | 
						Text string. | 
					
				
			 
		 
	    		   	   
		Return Value
		If the operation ends correctly it returns true otherwise it returns false.
										
	Example
	
		
			
				|  
				 | 
				
                    
                         Copy code
				 | 
			
			
				
  var file = new DlxFile("www.mysite/files/myfile.pdf", DlxApp.FILEOPEN_READBINARY);
if (file.IsValid())
{
  var zip = new DlxFile("demo.zip", DlxApp.FILEOPEN_ZIP);
  zip.AddFile(file, "demo.bin");
  zip.AddText("demo1.txt", "Text file demo 1.");
  zip.AddFolder("folder1");
  zip.AddText("folder1/demo2.txt", "Text file demo 2.");
  zip.Close();
};
				 | 
			
		
	 
	    
		See also