Advertisement
Guest User

Untitled

a guest
Jan 27th, 2014
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <stddef.h>
  4. #include <stdlib.h>
  5. #include <wchar.h>
  6.  
  7. int main()
  8. {
  9.     FILE* f;
  10.     wchar_t str[BUFFER_SIZE];
  11.     size_t  strSize;
  12.  
  13.     if ((f = _wfopen( L"d:\\1.txt",L"wb")) == NULL) // C4996
  14.     {
  15.         wprintf(L"_wfopen failed!\n");
  16.         return(0);
  17.     }
  18.  
  19.     if (fclose(f))
  20.     {
  21.         wprintf(L"fclose failed!\n");
  22.     }
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement