1import * as fs from 'fs'
2
3var path = '/workspace/dev_amp/test.data';
4//var path = '/tmp/test.data';
5var content = 'this is amp fs test file';
6
7console.log('testing fs write...');
8// write file
9fs.writeSync(path, content);
10
11console.log('testing fs read...');
12// read file
13var data = fs.readSync(path);
14console.log('fs read: ' + data);
15
16console.log('testing fs delete...');
17fs.unlinkSync(path);
18