in reply to splitting 2D array into chunks
Your question is poorly formulated. Try again. It looks like you want the gaps too, in separate files.
Also, your description of the desired output is inconsistent. Why is
File-arr2-3.txt ---
if you don't have an empty slot in the 2d array?
Also, file File-arr1-8.txt seems to be missing - if both arrays are aligned. Then it should contain
arr1[9],arr1[10]
Hint: to write to files, you have to open them, then print to them, close them.
Can't say more about that.
|
|---|