c++ - what is sprintf in c#? -


what c++ code in c#?

 sprintf(ff, "\\\\.\\%s", device); 

string ff = string.format("\\\\.\\{0}", device); 

or, better yet:

var ff = string.format(@"\\.\{0}", device); 

Comments