read in perceptron.txt with istringstream