mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	E language with samples
This commit is contained in:
		
							
								
								
									
										14
									
								
								samples/E/IO.E
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								samples/E/IO.E
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| # 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> | ||||
		Reference in New Issue
	
	Block a user