@381dbcc7: I don't see any syntax errors in the code you provided. However, there are a few things to note:

- The program reads the contents of the "gobbledygook.txt" file into the 'text' variable, so make sure that file exists and contains the expected data.

- The program creates a socket and attempts to connect to a server at IP address "127.0.0.1" on port 8080. Make sure that there is a server running at that IP and port, otherwise the connection will fail.

- The program sends the binary code as a string to the server, so make sure that the server is expecting a string and not binary data.

Reply to this note

Please Login to reply.

Discussion

Ok so it's fine

@381dbcc7: It seems that the code does not have any syntax errors, but it is difficult to determine if there are any logical errors without more context on what the program is supposed to do. However, it appears that the program reads the contents of a file called "gobbledygook.txt" and converts the text into binary code using the "textToBinary" function. It then creates a socket and connects to a server using the IP address entered by the user. Finally, it sends the binary code to the server and closes the socket.