| 4D v18file.getText( ) | ||||||||||||||||||||||||||
| 
 | 
    4D v18
 file.getText( ) 
         | |||||||||||||||||||||||||
| Constant | Type | Value | Comment | 
| Document unchanged | Longint | 0 | No processing | 
| Document with native format | Longint | 1 | (Default) Line breaks are converted to the native format of the operating system: CR (carriage return) under OS X, CRLF (carriage return + line feed) under Windows | 
| Document with CRLF | Longint | 2 | Line breaks are converted to Windows format: CRLF (carriage return + line feed) | 
| Document with CR | Longint | 3 | Line breaks are converted to OS X format: CR (carriage return) | 
| Document with LF | Longint | 4 | Line breaks are converted to Unix format: LF (line feed) | 
By default, when you omit the breakMode parameter, line breaks are processed in native mode (1).
Returned value
Text of the file.
Given the following text document (fields are separated by tabs):
id name price vat
3 thé 1.06€ 19.6
2 café 1.05€ 19.6When you execute this code:
 $myFile:=Folder(fk documents folder).file("Billing.txt") //UTF-8 by default
 $txt:=$myFile.getText()... you get:
  // $Text = "id name price vat\r\n3 thé 1.06€\t19.6\r\n2\tcafé\t1.05€\t19.6"
  // \t = tab
  // \r = CR
	Product:  4D
	Theme:  File and Folder
	
        
        
	
	
	
	4D Language Reference ( 4D v18)
	
	
	
 Add a comment
Add a comment