I have a text file 'h.txt'.It is assumed as follows:
a dd gf jh ju h ghh frd ghyg hhh hgfd
Each doc gfd ffd f ffd gtr asd ds das fdr fef ftf hg
f fdd gtf rrr ed
I want the output matrix is as follows:
- I have one row for each line and each word is in a column.
- For example, here There are three rows.
- But the number of columns is different for each row(First row 11 column,in the other words a column for each word )