I have defined the derivative of a function
Derivative[f][x_] := Sin[x]
How can I save this definition in a file? Derivatives are not included in
Save["file.m",f] won't work. The best I can do now is
WriteLine["file.m","Derivative[f][x_] := Sin[x]"]
Any ideas how to do this more properly?