```d
auto jm_addToHistory(T...)(T args) {
import std.conv : text;
import std.file : append;
auto txt = text(args);
append("history.txt", txt);
return txt;
}
```
```d
auto jm_addToHistory(T...)(T args) {
import std.conv : text;
import std.file : append;
auto txt = text(args);
append("history.txt", txt);
return txt;
}
```