MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / readInputFile

Method readInputFile

src/App/ProjectFile.cpp:709–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709void ProjectFile::readInputFile(const std::string& name, std::ostream& str)
710{
711 Base::FileInfo fi(extractInputFile(name));
712 if (fi.exists()) {
713 Base::ifstream file(fi, std::ios::in | std::ios::binary);
714 file >> str.rdbuf();
715 file.close();
716 fi.deleteFile();
717 }
718}
719
720// Read the given input file from the zip directly into the given stream (not using a temporary
721// file)

Callers

nothing calls this directly

Calls 3

existsMethod · 0.45
closeMethod · 0.45
deleteFileMethod · 0.45

Tested by

no test coverage detected