How to control Servo from text file in SD Card ?

   pinMode (outputA,INPUT);
   pinMode (outputB,INPUT);

That looks pretty stupid. Do you plan to name the output pins inputFred and inputMary?

You are reading from a file you opened for write AND closed. Not a chance in hell of THAT working.