snowball take line as input, write result to file