Does anyone have any idea why getline fails to extract the char[]? (i.e.'This is a sentence!') I suspect the extraction operator causes something to happen to the fin buffer.
Expected Output
48
L
This is a sentence!
Actual Output
48
L
[code]
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
ifstream fin("testfile");
char letter;
char stringTwo[256];
int num;
fin >> num>> letter;
fin.getline(stringTwo, 256);
fin >> stringTwo;