At the moment the best solution i have is to use the verbatim input module.
However, this always puts the file on a newline, whereas ideally i would like to just to include the text value at the current position, without any formatting etc.
So at the moment i do:
Value of result: \VerbatimInput{file.txt} more text here
Which gives:
Value of result:
182.45
more text here
Whereas i would ideally like:
Value of result: 182.45 more text here
I have searched around for an answer to this and all i can seem to find is solutions for when the result is calculated in latex, rather than just included as an external text file.
Thanks