建立在Linux的一个空文件我想创建一个使用C的Ubuntu ++一个空文件,我尝试过很多办法,并不断失败,并显示此错误 error: no matching function to 'std::basic_ofstream::open(std::cxxll::... 我的代码: ifstream f(saltFile.c_str());
if (f.good())
{
cout
我正在为CS202类工作。我有一个名为data.dat的未知大小的提供二进制文件,需要从文件中读取整数(我不知道该文件的大小),并将它们存储在适当大小的矢量中。我必须使用fstream()作为文件流,我必须使用reinterpret_cast<char *>()进行转换。我的代码如下所示: fstream filestream2;
//reading binary data from suppl