this code won't compile:
what it tries to do is to replace all the commas in word with spaces...if i define word as a string it works...but then getline doesn't work...Code:char word[256]; ifstream in("test_data.txt"); in.getline(word, 256); replace(word.begin(),word.end(), ',' , ' '); in.close();
Thanks!
Farooq