final
This commit is contained in:
		
							
								
								
									
										14
									
								
								task10/app.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								task10/app.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| const fs = require('fs'); | ||||
|  | ||||
| let writeableStream = fs.createWriteStream('hello.txt'); | ||||
| writeableStream.write('Привет мир! \n'); | ||||
| writeableStream.write('Продолжение записи \n'); | ||||
| writeableStream.end('Завершение записи'); | ||||
| let readableStream = fs.createReadStream( | ||||
|     'hello.txt', | ||||
|     'utf8' | ||||
| ); | ||||
|  | ||||
| readableStream.on('data', function (chunk) { | ||||
|     console.log(chunk); | ||||
| }); | ||||
							
								
								
									
										3
									
								
								task10/hello.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								task10/hello.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| Привет мир!  | ||||
| Продолжение записи  | ||||
| Завершение записи | ||||
		Reference in New Issue
	
	Block a user
	 kogleee
					kogleee