how can i can i pipe a telnet output into a text file in window...

i'm using regular windows telnet