d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Set Delimiter For Input Stream?
Add Reply New Topic New Poll
Member
Posts: 3,277
Joined: Sep 13 2009
Gold: 0.00
Nov 21 2014 02:24pm
working on a program that reads names, majors, and grades, etc from a student record txt file
the names are all in the format Lastname, Firstname

if i want to store first and last names in variables of their own by doing, for examples, inFile >> last; (last being a c-string)

how can i change the delimiter character to be the comma rather than a white space so that last isn't stored as: "Lastname," ?
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll