© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
16 replies
Aksword

Get the first letters of a string

Hello,
Let's say that I have the string "tyranitar". With string[X], I can get the letter that I want, but is there a method or a fast way to get the first X chars of a string ? For exemple if I want "tyrani", how can I ask to substract from [0] to [6] ?
Thanks
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

✅ Reorder letters in a string and group per...
C#CC# / help
4y ago
Get the bytes of byte[] as string
C#CC# / help
3y ago
✅ Getting a string from a text file and get the whole line containing the string
C#CC# / help
4y ago