for(something){ open file get info write info to file close file }