热门标签
更多>
搜索结果
查询Tags标签: strFileName,共有 2条记录-
C#中下载项目中的文件
1.将需要下载的文档添加到项目的文件夹中 2.接口部分public IActionResult DownLoad(){var filePath = Directory.GetCurrentDirectory() + "\\UploadFileTemplate";var strFileName = "Manual courier dispatch record upload.xlsx";var strPath = f…
2022/4/26 17:13:02 人评论 次浏览 -
FILE获取文件长度
场景 通过C语言中的File获取文件长度static std::int64_t GetFileLen(const std::string &strFileName) { FILE *pFile = fopen(strFileName.c_str(), "r"); if (pFile == NULL) { return 0; } fseek(pFile, 0, SEEK_END);//定位到文件的最后面 std…
2021/4/12 18:55:08 人评论 次浏览