icysmarty
asked on
^M
Hi,
I need to upload my program to a unix station. When I uplaod the program to the unix station, each end of file will be followed by ^M.
I have an option to remove it using the command or capture this sequence in my own program and ignore it or do soemthing to it.
So, my question is how do I suppose to capture this in C++. I tried using ^(97) and M(77) but it doesn't work.
Any advise will be appreciated.
I need to upload my program to a unix station. When I uplaod the program to the unix station, each end of file will be followed by ^M.
I have an option to remove it using the command or capture this sequence in my own program and ignore it or do soemthing to it.
So, my question is how do I suppose to capture this in C++. I tried using ^(97) and M(77) but it doesn't work.
Any advise will be appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER