Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

C# SubStrings [Intermediate Level Tutorial]

Ah, I have never worked much with substrings, I would either use a splitter for this, because, when u can save datas into files eg. and use the data easier, this will only come handy in special sections.
Ive been using splitters for most things, where I was gonna get things inside a string.
Eg. for my 2d mmo that I was working on, but quitted long time ago.
Then I wass using it for getting items in inventory and equipments.
Like:
name~level~damage~class
and where ~ was the splitter.
Also splitters could be used as space, then just write " ", but only useful in some cases, if ur reading from ini or writing to ini, then using a sign is better, but good little guide for substrings :)
They would be good if ur gonna get a port or a special number in an ip.
Or something, but they aren't really used much.
I dont think I have used Substrings ever :P
(Oct 22, 2010 02:44 PM)tflo Wrote:  Good job, Substring is very useful function (IN VERY VERY SPECIAL CASES) and this should help many people.

fixed ^

It is useful, but it is only in very special cases.
As I stated above, using Splitters are much better and much more efficient.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by dummycartSep 9, 2021 03:38 AM 1 146 Sep 9, 2021 03:38 AM
Last Post: Lindros
[Python] by CiataLearnerDec 22, 2018 02:27 PM 1 211 Dec 22, 2018 02:27 PM
Last Post: notjapanese
[C] by Adam2017Dec 3, 2018 03:06 PM 2 167 Dec 3, 2018 03:06 PM
Last Post: Adam2017