I want to build an application in c# which is used to send file via telnet and receive acknowledgement.
Suppose I use cmd and type o 10.200.5.2 and connect to the remote server...
then it ask me to type login name
then it ask me to type password
then it show a screen with a list of options of me.
I want to choose option 1
then I type 1 and press enter
how can I do such things in PHP?