mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			462 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			462 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # E sample from
 | |
| # http://wiki.erights.org/wiki/Walnut/Ordinary_Programming/InputOutput
 | |
| #File objects for hardwired files:
 | |
| def file1 := <file:myFile.txt>
 | |
| def file2 := <file:/home/marcs/myFile.txt>
 | |
| 
 | |
| #Using a variable for a file name:
 | |
| def filePath := "c:\\docs\\myFile.txt"
 | |
| def file3 := <file>[filePath]
 | |
| 
 | |
| #Using a single character to specify a Windows drive
 | |
| def file4 := <file:c:/docs/myFile.txt>
 | |
| def file5 := <c:/docs/myFile.txt>
 | |
| def file6 := <c:\docs\myFile.txt>
 |