sjesweak Posted February 9, 2004 Posted February 9, 2004 Console::WriteLine(S"{0} is not a valid file or directory.", path); I know the {0} is where the 'path' variable is placed can someone please tell me how the {0} works and what all this can be used for. Quote
*Experts* Bucky Posted February 9, 2004 *Experts* Posted February 9, 2004 The {0} thing is not specific to WriteLine(); it is a feature of the [mshelp=ms-help://MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemStringClassFormatTopic.htm]String.Format()[/mshelp] method, which Console.WriteLine() conveniently calls for you. You can include more parameters by specifying {1}, {2}, etc. and passing more parameters to the function. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.