Answer the question
In order to leave comments, you need to log in
How to find out if there is a space after the delimiter?
Good afternoon everyone, there is such a CSV (txt) file
dialogue_O2uWK,I've spent too long away from my family... My contract is almost up and i'll finally be able to go home.,,Ma famille me manque. J'espère que je les verrai bientôt.,Mi manca la mia famiglia. Spero di rivederli presto.,,,,,"Я скучаю по семье. Надеюсь, я скоро их увижу.",家族に会いたい。早く会えることを願っている。,我想念我的家人。我希望能尽快见到他们。,,,Ailemi özledim. Umarım yakında görüşürüz.,,,
string[] list = sourceText.Split(',');
Я скучаю по семье. Надеюсь, я скоро их увижу.
Answer the question
In order to leave comments, you need to log in
To split by a dot, use Split('.')
To check for a space after the comma, use a comma search through a loop (Better through for) and check if the element at index i+1 is a space.
Something like if (list[i + 1] == ' ') ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question