Please do not post screenshots of code (or error messages); use code tags as described in https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966#posting-code-and-common-code-problems.
Further please post full code (or a representative example that exhibits the behaviour).
So you're saying that in the second code you will see the message "Failed to open newparam.txt after confirming existance"?