Open file as write-only in Z80.

This commit is contained in:
2021-05-25 21:52:51 +01:00
parent f5153c879c
commit 906e63469e
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ void Filenames(const char* path)
for(pos = 0; filenames[pos]; pos++)
{
h = fopen(filenames[pos], "w+");
h = fopen(filenames[pos], "w");
rc = 0;
wRc = 0;
cRc = 0;

View File

@@ -48,8 +48,8 @@ void MillionFiles(const char* path)
memset(filename, 0, 9);
sprintf(filename, "%08ld", pos);
h = fopen(filename, "w+");
if(h == NULL) { break; }
h = fopen(filename, "w");
if(h == NULL) break;
fclose(h);
}