Home | History | Annotate | Download | only in windows

Lines Matching defs:file

296   // Now append the upload file as a binary (octet-stream) part
329 // not exist in earlier versions, so let the ifstream open the file itself.
330 // GCC doesn't support wide file name and opening on FILE* requires ugly
331 // hacks, so fallback to multi byte file.
333 ifstream file;
334 file.open(filename.c_str(), ios::binary);
336 ifstream file(WideToMBCP(filename, CP_ACP).c_str(), ios::binary);
338 if (file.is_open()) {
339 file.seekg(0, ios::end);
340 std::streamoff length = file.tellg();
348 file.seekg(0, ios::beg);
349 file.read(&((*contents)[0]), length);
353 file.close();