How can I get, save and load the external forces vector?

See for instance: How to save solution in .txt format? - #8 by dokken