Thread: getline(inFile, charVariable, '\t')

  1. #1
    somoan
    Guest

    getline(inFile, charVariable, '\t')

    Can you read in type char with getline?

  2. #2
    Unregistered
    Guest
    routine use of getline has first parameter the arguement to read in, second variable is maximum number of char to read in, and third is terminating character. I would avoid using a char as second postion although compiler may accept it as each char has an associated integer value.

Popular pages Recent additions subscribe to a feed