public void parseFile(String pathToFile) {
        try {
            BufferedReader br = new BufferedReader(new FileReader(pathToFile));
            String line = br.readLine();
            int lineCounter = 1;

            while (lineCounter < 5) {
                lineCounter++;
                line = br.readLine();
            }

            String[] lineStrParams = line.split(" ");

            baseCounter.areaSizeX = Integer.parseInt(lineStrParams[1]);
            baseCounter.areaSizeY = Integer.parseInt(lineStrParams[2]);
            baseCounter.areaSizeZ = Integer.parseInt(lineStrParams[3]);

            while (lineCounter < 7) {
                lineCounter++;
                line = br.readLine();
            }

            lineStrParams = line.split(" ");

            baseCounter.stepX = Integer.parseInt(lineStrParams[1]);
            baseCounter.stepY = Integer.parseInt(lineStrParams[2]);
            baseCounter.stepZ = Integer.parseInt(lineStrParams[3]);

            baseCounter.scalefactorX = 1000.0 / baseCounter.stepX;
            baseCounter.scalefactorY = 1000.0 / baseCounter.stepY;
            baseCounter.scalefactorZ = 1000.0 / baseCounter.stepZ;

            while (lineCounter < 9) {
                lineCounter++;
                br.readLine();
            }

            Scanner s = new Scanner(br);
            baseCounter.initField();

            for (int k = 0; k < baseCounter.areaSizeZ; k += 1) {
                for (int j = 0; j < baseCounter.areaSizeY; j += 1) {
                    for (int i = 0; i < baseCounter.areaSizeX; i += 1) {
                        baseCounter.fieldDistr[i][j][k] = new Vector3d(Double.parseDouble(s.next()), Double.parseDouble(s.next()), Double.parseDouble(s.next()));
                    }
                }
            }

        } catch (IOException e) {
            e.printStackTrace();
        }
    }