Writing in a file?

out=open("t.txt","w")
file = open("Test2.txt") do file
    f = readlines(file)
    for line in f
      if line[23:28]== "Window"
         write(out,line)
		 write(out,"\n")
      end
   end
end
close(out)

See Networking and Streams · The Julia Language for information about I/O