Standards should be clear on this issue so I am very tempted to tell you to apply some intelligence to this area.

printf:
fprintf
scanf:
fscanf

You can find information on $ here:...