The data in the txt-file are just two columns with numbers, no labels (x-y coordinates).
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct dataset{
float x;
float y;
} dataset;
int main(){
dataset* coordinates;
FILE* input;
input = fopen("data.txt", "r");
int i = 0;
while (fscanf(input, "%e %e", &coordinates[i].x, &coordinates[i].y) == 2)
i++;
fclose(input);
return 0;
}
Thank you for helping me out.