How to parse the "value" in an accounting message and print the contents In "detail-..." file?