Link to home
Start Free TrialLog in
Avatar of icysmarty
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.
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of icysmarty
icysmarty

ASKER

Cool.. thank you.