C
C#5mo ago
sterbuk

How can I play a song in a c# console?

I found it but how can I make so it stops when I type "stop"?
4 Replies
Arpit Sirohi
Arpit Sirohi5mo ago
some sort of if condition with character matching to stop ?
sterbuk
sterbuk5mo ago
Its alright Do you know how to make a timer by any chance?
Arpit Sirohi
Arpit Sirohi5mo ago
I think you can also use a simple timer for this if there is a time duration . Just use the System.Timer system create an object timer = new System.Timers.Timer() ; and after the interval you can just reset the timer and exit
sterbuk
sterbuk5mo ago
I got it thank you though