Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to use typescript to read a file

import { readFileSync } from 'fs';

const file = readFileSync('./filename.txt', 'utf-8');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #read #file
ADD COMMENT
Topic
Name
1+5 =