N
N
NeoLight32020-08-04 18:08:09
C++ / C#
NeoLight3, 2020-08-04 18:08:09

How to get strings from a string by delimiting "|"?

There is text:
string text = "|NeoLight|700|20|69|";

How to get 4 variables using the standard text editing functions in C# using the separator "|" ?
for example, assign a string name to a variable; first object in brackets | | (NeoLight) ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Shvedov, 2020-08-04
@NeoLight3

https://docs.microsoft.com/ru-ru/dotnet/api/system...

V
Vladimir Korotenko, 2020-08-04
@firedragon

Pay attention to the stringsplioption parameter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question