Skip to content

Instantly share code, notes, and snippets.

@ripperdev
Last active July 5, 2021 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ripperdev/453697b217c3e02680c2cf10d69f1f68 to your computer and use it in GitHub Desktop.
Save ripperdev/453697b217c3e02680c2cf10d69f1f68 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string>
#pragma warning(disable : 4996)
int main() {
FILE* stream;
std::string file_name = "c:\\abc\\uyhb.jpg";
if ((stream = fopen(file_name.c_str(), "r")) == NULL) {
printf("failed\n");
} else {
printf("success");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment