Re: append - too many files

2023-01-10 Thread Joel via Digitalmars-d-learn
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

Re: append - too many files

2023-01-10 Thread Salih Dincer via Digitalmars-d-learn
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

Re: append - too many files

2023-01-10 Thread H. S. Teoh via Digitalmars-d-learn
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

append - too many files

2023-01-10 Thread Joel via Digitalmars-d-learn
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);