Jan-19-2020, 06:45 PM
hello programmers.
Please, I have a question about decoding a string that contains pinging. The whole ping is in the listbox, which I need to save as a log to log.txt, but I don't know how to decode this string so that it is not included in \ r and that the output looks like a command line. Thank you
Please, I have a question about decoding a string that contains pinging. The whole ping is in the listbox, which I need to save as a log to log.txt, but I don't know how to decode this string so that it is not included in \ r and that the output looks like a command line. Thank you
('\r', 'Pinging 8.8.8.8 with 32 bytes of data:\r', 'Reply from 8.8.8.8: bytes=32 time=19ms TTL=53\r', 'Reply from 8.8.8.8: bytes=32 time=17ms TTL=53\r', 'Reply from 8.8.8.8: bytes=32 time=16ms TTL=53\r', 'Reply from 8.8.8.8: bytes=32 time=18ms TTL=53\r', 'Reply from 8.8.8.8: bytes=32 time=22ms TTL=53\r', '\r', 'Ping statistics for 8.8.8.8:\r', ' Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),\r', 'Approximate round trip times in milli-seconds:\r', ' Minimum = 16ms, Maximum = 22ms, Average = 18ms\r')