Yuvaraj Athur Raghuvir wrote: > Extending.... > >> dat=. 'b' fread 'temp/t1.txt' >> dat=. cut each dat >> len=. >./ # &> dat >> len $ &> dat NB. reshape to required shape > > There happen to be 'empty' rows in the input file. If the input file is > clean, this works. Else, the reshape line (marked with NB.) fails!! > > So, how should I "clean" the input file before reading it? Here I want to > remove the empty lines and have only the lines that have data to be used.
After dat=. 'b' fread 'temp/t1.txt' add: dat=. dat -. a: ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
