A Maint. operator was checking on repairs made to railcar loadout pump. The loadout operator prepared to load railcar by lowering a 4"" alum pipe inside railcar. The Maint. operator didn't see flow going into railcar and was told manual valve was closed. Upon opening valve, the 4"" pipe came out of railcar striking the maint operator's fingers that were on the valve.