March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -1,14 +1,14 @@
|
|||
import std.stdio, std.file, std.string, std.datetime, std.range;
|
||||
void main(in string[] args) {
|
||||
import std.stdio, std.file, std.datetime, std.range;
|
||||
|
||||
void main(string[] args) {
|
||||
immutable filename = "NOTES.TXT";
|
||||
|
||||
if (args.length == 1) {
|
||||
if (exists(filename) && isFile(filename))
|
||||
if (filename.exists && filename.isFile)
|
||||
writefln("%-(%s\n%)", filename.File.byLine);
|
||||
} else {
|
||||
auto f = File(filename, "a+");
|
||||
f.writefln("%s", cast(DateTime)Clock.currTime);
|
||||
f.writefln("\t%s", args.dropOne.join(" "));
|
||||
f.writefln("\t%-(%s %)", args.dropOne);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue