How to read a txt file with an 8x11 matrix that has several char
and put it in char [][]
?
The txt can have this form:
%,%,%,%,%,%,%,%,%,%,%
%,%,%,h,o,l,a,%,%,%,%
%,%,%,%,%,%,%,%,%,%,%
%,%,%,m,u,n,d,o,%,%,%
%,%,%,%,%,%,%,%,%,%,%
%,%,%,%,%,%,%,%,%,%,%
%,%,%,%,%,%,%,%,%,%,%
How do you read the previous txt from Java and put it as is with its rows and columns in char [][]
? Not in a vector []
, but in a matrix, respecting the rows and columns.