text: const process = require('process');
  const fs = require('fs');
  const stream = require('stream');
  const path = require('path');
  
  let writeStream = fs.createWriteStream(path.join(__dirname, 'write.txt'));
  let output = '';
  
  console.log('Hello, please type your information: \nWhen you end typing please type "exit" or press ctrl + C\n');
  
  process.stdin.on('data', data => {
      if(data.toString().trim().toLowerCase() == 'exit') {
          process.stdout.write('\nThank you! Wait for the call from us!');
          process.exit();
      } else {
          // output += writeStream.write(data) + '\n';
          writeStream.write(data);
      }
      process.on('SIGINT', () => {
          console.log('\nThank you! Wait for the call from us!');
          process.exit();
      });
      //data.toString().trim().toLowerCase() == 'exit' ? process.stdout.write('\nThank you! Wait for the call from us!').exit() : writeStream.write(data);
  })
  
  
  // writeStream.on('data', (chunk) => {
  //     writeStream.write(chunk);
  // });
  
  
  
  