File Open
-
Why I can't use "\\servername\....\test.txt"? When I use full path "c:\....\test.txt" it is fine.
Are you using CreateFile()? I got sick of that function for this reason and switched to the old file functions. example: FILE *file = fopen("\\servername\....\test.txt", "r");/*"r" means you're reading the file........*/ if (file) { while (!feof(file)) /*while the file has not reached end of file*/ { /*whatever........ go to cplusplus.com for a complete file function reference, type in "file functions" into the search field*/ } fclose(file);//close the file } -- Steve
-
Why I can't use "\\servername\....\test.txt"? When I use full path "c:\....\test.txt" it is fine.
-
and you've tested the same filename string in a program like notepad?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [Santa Cruz Networks](http://www.santacruznetworks.com)
-
Why I can't use "\\servername\....\test.txt"? When I use full path "c:\....\test.txt" it is fine.
How about a code snippet?
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?