Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Soket probleme with letter 'k'

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
I wrote socket with method "print SOCK ....".

The server's prog get the string value with &quot;while $ligne=<SOCK>&quot;...

But when the string has the letter &quot;k&quot; it makes problems.

How can i make it run without taking the k letter has a new line command?
 
Jay,

This is probably a silly question - but why is 'k' being interpreted as a \n ?

Could you post a short bit of code (very short please, socket programming is *notoriously* verbose) that demostrates the problem please? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top