✅ text document boring thing but i'm stuck >_<
Hey guys, I'm trying to code a program in C# that takes a .txt as input and turns only the second column into lowercase
The .txt is formatted like shown in the picture, but basically it is a couple tab spaces followed by a string in double quotes followed by another string in double quotes with some spaces seperating them.
Currently my code converts both columns into lowercase and I have no idea what I'm doing wrong O_o
I attached my input document and what it comes out as.
Code is below:
4 Replies
Do you know how to debug code?
I think if you were to step through the code in a debugger you would be able to inspect your variables and see what is going wrong.
This part is probably not doing what you think it's doing, @drop a draco
You have a string that looks something like this:
\t\t"Something"\t\t"OtherThing"
So you find the index of the first double quote. Index 2.
Then you take that many characters (2) starting at index 0. That gives you the two tab characters.
Then you take everything else. That gives you the entire rest of the string minus the two starting tab characters.
Then you lowercase that.
haha, not much i use vs studio for mac and i only started about 2 months ago
thank you very much sir :)
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.