C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-09-2007, 11:17 AM   #1
Registered User
 
Join Date: Nov 2005
Posts: 41
String template

In Java I know there is a class that makes it possible to have a file with strings looking like this:

Code:
afdasda {1} dfsfsdf sdfsdf {2} fd gerhery
rjhrt {1} rjt sdfsdf {2} fd gerherert  y {3}

When I fetch them I can easily insert my own strings into the gaps, that is in the {x}. How do I do that in C#?
mdoland is offline   Reply With Quote
Old 11-14-2007, 08:05 PM   #2
Sweet
 
Join Date: Aug 2002
Location: Tucson, Arizona
Posts: 1,698
string.format
http://msdn2.microsoft.com/en-us/lib...ng.format.aspx
prog-bman is offline   Reply With Quote
Old 11-15-2007, 02:42 AM   #3
Registered User
 
Join Date: Nov 2005
Posts: 41
Great!

Thanks alot!
mdoland is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
String issues The_professor C++ Programming 7 06-12-2007 09:11 AM
Calculator + LinkedList maro009 C++ Programming 20 05-17-2005 12:56 PM
Something is wrong with this menu... DarkViper Windows Programming 2 12-14-2002 11:06 PM
Classes inheretance problem... NANO C++ Programming 12 12-09-2002 03:23 PM
Warnings, warnings, warnings? spentdome C Programming 25 05-27-2002 06:49 PM


All times are GMT -6. The time now is 04:03 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22