masking

TTurtlesx10/21/2022
How do I specify how many characters I want to mask
Image
TTurtlesx10/21/2022
I am unable to use mask on C#
AAngius10/21/2022
Why are you converting a string to a string?
AAngius10/21/2022
And what do you mean by "mask"?
TTurtlesx10/21/2022
basically X out the string
AAngius10/21/2022
When entering it, or when printing it out?
TTurtlesx10/21/2022
printing
AAngius10/21/2022
Using the string constructor to create a string with n letters X in it would be one part of it
AAngius10/21/2022
Cutting out the first n characters of your string would be the second
TTurtlesx10/21/2022
as i want to mask out the front character specified by me\
AAngius10/21/2022
Joining those strings together would be the last
TTurtlesx10/21/2022
like how many char i want to X out
AAngius10/21/2022
That'd be the n
TTurtlesx10/21/2022
I do not understand
AAngius10/21/2022
Image
TTurtlesx10/21/2022
Sry as i am quite new to c#
MMODiX10/21/2022
AAngius10/21/2022
This will create a string with 7 *s in it
AAngius10/21/2022
So that's the first part of solving your problem
MMODiX10/21/2022
TTurtlesx10/21/2022
Cool
AAngius10/21/2022
This will take only some part of the string
AAngius10/21/2022
So that solves the second part
MMODiX10/21/2022
AAngius10/21/2022
And this concatenates two strings together
TTurtlesx10/21/2022
like using existing string
TTurtlesx10/21/2022
I want to X it out
AAngius10/21/2022
Cool
AAngius10/21/2022
I know
AAngius10/21/2022
I gave you the solution, now it's on you to implement it
AAngius10/21/2022
If you're expecting to be spoonfed a ready-made solution, I have bad news for you
TTurtlesx10/21/2022
ahhh
TTurtlesx10/21/2022
thx for your help