print A and b to files