убрал лишний enter в печати в файл.

This commit is contained in:
2023-12-04 16:37:30 +03:00
parent 7b28d1a84d
commit 3f9ba0feb3
3 changed files with 3 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ public:
}
File(const String& name, const String& text) {
ptr = fopen(name.getCharArray(), "w");
fprintf(ptr, "%s\n", text.getCharArray());
fprintf(ptr, "%s", text.getCharArray());
}
~File() {
Close();

View File

@@ -115,7 +115,7 @@ int main(int argc, char ** argv)
#endif
printf("PID=%d\n", pid);
File pidFile("PID", String(pid));
File pidFile("PID", String(pid)+"\n");
pidFile.Close();
//---
File startFile("STARTED", "+");