{"title":"CFile\u3092\u4f7f\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u767a\u8aad\u307f\u66f8\u304d","categories":[],"author_name":"shikaku","url":"https://blog.systemjp.net/entry/2022/02/28/110207","provider_name":"Hatena Blog","version":"1.0","width":"100%","provider_url":"https://hatena.blog","blog_url":"https://blog.systemjp.net/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F2022%2F02%2F28%2F110207\" title=\"CFile\u3092\u4f7f\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u767a\u8aad\u307f\u66f8\u304d - shikaku&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_url":"https://blog.hatena.ne.jp/shikaku/","description":"\u8aad\u307f CFile f; CString writeData=\"\"; if ( f.Open(\"test.txt\",CFile::modeRead) == TRUE) { unsigned int flen = (unsigned int)f.GetLength(); unsigned char *data = (unsigned char *)malloc(flen+1); if ( data != NULL ) { f.Read(data,flen); data[flen] = 0; writeData = data; free(data); f.Close(); } } \u66f8\u304d CFile \u2026","published":"2022-02-28 11:02:07","image_url":null,"type":"rich","blog_title":"shikaku's blog"}