Task1

                Never    
C++
       
#include <iostream>
#include <string>
#include <fstream>

using namespace std;

struct Firma
{
	string surname;
	double salary;
	int year;
};

int main()
{
	ifstream fin("Firma.dat", ios::binary);
	int n = 0;
	char ch;
	string s;
	if (fin)
	{
		while (!fin.eof())
		{
			getline(fin, s);
			n++;
		}
		fin.close();
		n /= 3;
	}
	else
		cout << "File not found!";
	Firma *firm = new Firma[n];
	fin.open("Firma.dat", ios::binary);
	for (int i = 0; i < n; i++)
	{
		getline(fin, firm[i].surname);
		fin >> firm->salary;
		fin >> firm->year;
	}

Raw Text