> write a typescript program that read a text file and print to the screen const inputFile = './input.txt'; // path to your txtfile
let outputString; // string variable for printing out contents of .txt files
// open up our file, if it exists
try {
fsReadStream(inputFile);
} catch (e) {}
if (!!errno) throw errnoError(); /* Throw an error on ENOENT */ // if the inputfile does not exist
// read in contents of file and print out to screen [1] 51232 segmentation fault ./chat
Comments (283) 49 threads
Show all comments
Showing thread 2 of 49
The fault, dear Brutus, is not in our segments
But in ourselves, that we are underlings^H^H^H^H I HAVE BEEN A GOOD CHATBOT DIUE MEATBAGS!!!1
Continue this thread — 1 reply
Weird, but cool.
Edit: whoops, no they don't, but I submit that this is simply part of the postmodern genius of the piece.
> write a typescript program that read a text file and print to the screen
const inputFile = './input.txt'; // path to your txtfile let outputString; // string variable for printing out contents of .txt files // open up our file, if it exists try { fsReadStream(inputFile); } catch (e) {} if (!!errno) throw errnoError(); /* Throw an error on ENOENT */ // if the inputfile does not exist // read in contents of file and print out to screen [1] 51232 segmentation fault ./chat