O
ozgun.harmanci
Hi everyone,
I had a big problem with line returns and carriage character
difference in windows and linux. I think what happened was, the scp
program i am using in to send file from windows machine to a linux
machine did not somehow realize that the files i am uploading are
ascii files and sent them as binary. When I tried to use those files,
input to another program, in linux I was getting strange problems with
them until i realized that the line returns and carriages were the
problem.
Is there a way in C++ to determine and tell the user that the line
returns and carriages are compatible with linux or windows to warn
them against input problems? Specifically i am looking for ansi c
function to accomplish this in a robust way so as to have the input
validation correctly set.
Thanks a lot in advance,
Oz.
I had a big problem with line returns and carriage character
difference in windows and linux. I think what happened was, the scp
program i am using in to send file from windows machine to a linux
machine did not somehow realize that the files i am uploading are
ascii files and sent them as binary. When I tried to use those files,
input to another program, in linux I was getting strange problems with
them until i realized that the line returns and carriages were the
problem.
Is there a way in C++ to determine and tell the user that the line
returns and carriages are compatible with linux or windows to warn
them against input problems? Specifically i am looking for ansi c
function to accomplish this in a robust way so as to have the input
validation correctly set.
Thanks a lot in advance,
Oz.