On Wednesday, 11 January 2023 at 06:00:26 UTC, Salih Dincer wrote:
On Wednesday, 11 January 2023 at 02:15:13 UTC, Joel wrote:
I get this error after a while (seems append doesn't close the
file each time):
There is no error in the function or Phobos. There may be
another error on your system
On Wednesday, 11 January 2023 at 02:15:13 UTC, Joel wrote:
I get this error after a while (seems append doesn't close the
file each time):
There is no error in the function or Phobos. There may be
another error on your system or depending on how you use it.
Could it be that more than one pr
On Wed, Jan 11, 2023 at 02:15:13AM +, Joel via Digitalmars-d-learn wrote:
> I get this error after a while (seems append doesn't close the file
> each time):
> std.file.FileException@std/file.d(836): history.txt: Too many open files
>
> ```d
> auto jm_addToHistory(T...)(T args) {
> impor
I get this error after a while (seems append doesn't close the
file each time):
std.file.FileException@std/file.d(836): history.txt: Too many
open files
```d
auto jm_addToHistory(T...)(T args) {
import std.conv : text;
import std.file : append;
auto txt = text(args);