I have a text file, I want to read this text file into 3 different arrays, array1 array2 and array3. the first paragraph gets put in array1, the second paragraph gets put in array2 and so on. the 4th paragraph will then be put in array1 element2 and so forth, paragraphs are separated by a blank line. any ideas?
Share
This is the basic code I would try:
This should be enough to get you started. If the paragraphs in the file are split by two new lines then “\n\n” should do the trick for splitting them.