ServiceNow: How to read the content of a text file from an incident record attachment

How to read the content of a text file from an incident record attachment: GlideSysAttachment API is used to handle attachments.With this API, we can copy attachment from one record to anotherread the content of a attached file as text, base64 or content streamwrite the contentread all attachments of a record and also we can delete any of the attachment of a recordvar attachment = new GlideSysAttachment();var...