✅ Help
I'm new to c# and i have a project where i have to start every line with the character '>', and the problem is that when i type en new line the first letter of the word goes before the '>'
16 Replies
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
i want it so the '>' goes before the word i wanna type
I dont see in your code where it would cause the letter to be in front that way thou
Console.Write("> "); will print > without moving to the next
Console.ReadLine() without true will display what you're typing on the current line and then u hit enter it will print
so in the above code there is nothing that does
h> ello
so my code is right ?
ah ok I see the problem
u have to remove Console.ReadKey()
that is what gives u the letter before
ow
Console.ReadKey() will wait until u type a letter
so u type h
😄
👍
that was a stupid mistake
no worries I almost missed it too haha
$close
Use the /close command to mark a forum thread as answered
thanks