Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

Keeping End-of-lines with tcp tranfert

 [1/3] from: coussement::c::js::mil::be at: 2-Oct-2001 11:29

Hi: I would like to transfert a original text file through a tcp port, to create a -same- target text file. The communication is not a problem, but I lose the line termination into the target file, and the result text file has become one big string. I tried various combinations of read, write with /lines /string /binary refinements, on the client part and on the server part, but none is working. I'm sure I'm overlooking something basic here, but cannot find what. Please help ! Thanks, christophe==

 [2/3] from: phil:hayes:cnutarch at: 2-Oct-2001 11:09

Christophe, Must open with binary refinement so that nothing is lost in read or write Phil

 [3/3] from: coussement:c:js:mil:be at: 4-Oct-2001 11:06

Thanks a lot, Phil. It works all OK ;-) christophe==