hello everybody i wrote a program a.out. it get input from stdin, so i can use pipe or redirection to get data from file. such as
# cat foo|a.out the problem is foo is end in "LF" ( 0A ), and it will let a.out get wrong output. if i run #a.out and input data from keybord, then end it by ctrl+D, will get the right answer. how can i chop the "LF"?(remake data file foo or filtrate it by bash, filtrate it will be better,but i don't know how to do. ) many thanks! ************************************************************** zhang xiaolei Department of mathematics GuangZhou Normal University mailto: [EMAIL PROTECTED] **************************************************************