Ad
  • Custom User Avatar

    great solution, but you don't need getline
    cause, getline is more powerfull for different delimiters

    in this case a clear stream based solution is: while(stream >> buffer)

    it would be neat because you just need blank space delimiter

    and this works for streams with delimiters like: ' ', TAB and Return Line

    best regards