убрал лишний enter в печати в файл.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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", "+");
|
||||
|
||||
Reference in New Issue
Block a user