Horje
how to get a word from file c++ Code Example
how to get a word from file c++
void readFile()
{
    ifstream file;
    file.open ("program.txt");
    if (!file.is_open()) return;

    string word;
    while (file >> word)
    {
        cout<< word << '\n';
    }
}




Cpp

Related
c++ product of vector Code Example c++ product of vector Code Example
c++ initialize array 1 to n Code Example c++ initialize array 1 to n Code Example
for loop vector Code Example for loop vector Code Example
c++   check first character of string Code Example c++ check first character of string Code Example
delete a head node in link list Code Example delete a head node in link list Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14