Also, how would I print the result "v" to a text file?