Perhaps FileExists shouldn't erase file contents...

This commit is contained in:
Simon Robertshaw 2012-08-08 20:05:47 +01:00
parent 346e9d2168
commit 9f1301df5a

View File

@ -230,7 +230,7 @@ bool Client::FileExists(std::string filename)
bool exists = false;
try
{
std::ofstream fileStream;
std::ifstream fileStream;
fileStream.open(string(filename).c_str(), ios::binary);
if(fileStream.is_open())
{