Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open File

Status
Not open for further replies.

mayu03

Programmer
Oct 3, 2003
91
US
Why I can't use "\\servername\....\test.txt"?
When I use full path "c:\....\test.txt" it is fine.

 
In C++ "\\servername\....\test.txt" will taransforn in my opinion to
"\\\\servername\\....\\test.txt"

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
What do you mean use? You did not provide enough information. As Ion states, if you are refering to a string literal you must escape the backslash character. If you are not familiar with the term "escape sequence" as it pertains to C/C++ you should look it up.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top