|  Okay thanks! Interesting challenge for a beginner btw  | 
                         ==>  | 
                    
 
                    
                    
                        |  When I pipe huge amount of char to the program,every time I run executable, it tries to input extra characters that are left from initial running.   | 
                         ==>  | 
                    
 
                    
                    
                        |  It is interesting for a beginner! If it is okay to ask this,is there a stack overflow or something similar?   | 
                         ==>  |