getline(inFile, charVariable, '\t')

This is a discussion on getline(inFile, charVariable, '\t') within the C++ Programming forums, part of the General Programming Boards category; Can you read in type char with getline?...

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21