A significant amount of communication between spouses and ex-spouses now occurs by text. This is convenient for the parties, but can present some problems in terms of preserving these communications as evidence for a court proceeding. The challenge is to figure out how to produce the texts in a document format showing date, time and sender so that it can used as evidence.
While I cannot claim to be an expert on the topic, there are some ways to save cell phone text messages to a printable file.