ファイルの作成

フォルダ名に悩む。ドキュメントにはいくつか説明があるのだけど、よくわからない。結局こうなった。
int fd, result;
size_t write, written;
int counter = 0;
while (1)
{
     result = SOLID_FS_Open(&fd, "\\OSCOM_FS\\home\\kojima\\textfile.txt", O_CREAT | O_RDWR | O_TRUNC);
    if (result == SOLID_ERR_OK)
    {
        write = int2str(counter, line);
        result = SOLID_FS_Write(fd, line, write, &written);
        SOLID_FS_Close(fd); } counter ++; dly_tsk(10000);
    }
}

この記事が気に入ったらサポートをしてみませんか?