unity read text file line by line
#include <stdio.h>
int main() {
FILE *file;
char line[100];
file = fopen("filename.txt", "r");
if (file) {
while (fgets(line, sizeof(line), file)) {
// Process the line here
}
fclose(file);
}
return 0;
}