Hello,
Faced the problem of writing data to the logs. Each new data transmitted via a socket must be written into a separate file with a new name (log1.txt, log2.txt ....)
There is an idea that you need to check the directory for files, read the name into a string and add a digit. Can anyone have any advice?