add single files, secure server, hello world
This commit is contained in:
13
single_file_tests/print_file.dart
Normal file
13
single_file_tests/print_file.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env dart
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
main(List<String> args) async {
|
||||
print("[INFO] Arguments: $args");
|
||||
if (args.length == 0) {
|
||||
print("No file assigned.");
|
||||
return;
|
||||
}
|
||||
final contents = await new File(args[0]).readAsString();
|
||||
print(contents);
|
||||
}
|
||||
Reference in New Issue
Block a user