I have string that contains multiple lines of text.
How can I delete first line, and write rest to file?
The length of first line isn’t same always but
next line always starts with “@” (first line does
not contain that).
Without knowing the full format of the text, it’s hard to know for sure, but it might be as simple as:
set my text item delimiters to return
write ((paragraphs 2 through -1 of long_string) as string) to write_file starting at 0
‘paragraphs of’ will break a string into return or line feed-delimited list, of which you eliminate the first one by way of the ‘2 through -1’ syntax. The ‘as string’ converts it back from a list to a text block , and the first line handles the line breaks.