What about a newline with write(f, "\n") before writing the next block of data into the file?
On Thu, Oct 13, 2016 at 1:08 PM, <programista...@gmail.com> wrote: > How to write data to new line in outfile.txt file, in this script data i > still writing in the same line > > io=open("outfile.txt", "w" > o=open("dump.txt") > for i=1:100 > temp=readline(o) > poz=findin(temp,",")[3] > write(io, temp[1:poz-1]) > end > close(o) > close(io) > > Paul >