#include <iostream>
#include <array>
#include <string>
#include <fstream>
using std::cout;
using std::endl;
using std::array;
using std::string;
int main()
{
array<string, 10> arr;
std::ifstream in("d:\\data.txt");
string word;
int i = 0;
while (in >> word)
arr[i++] = word;
in.close();
for (string val : arr)
cout << val << endl;
return 0;
}
/*
run:
python
java
c#
php
c++
*/