add single files, secure server, hello world
This commit is contained in:
11
single_file_tests/file.dart
Normal file
11
single_file_tests/file.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'dart:io';
|
||||
|
||||
main() async {
|
||||
var f = new File('f.txt');
|
||||
var contents = await f.readAsString();
|
||||
var lines = await f.readAsLines();
|
||||
|
||||
print('Contents:' + contents);
|
||||
print('Lines:' + lines.join('||'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user