Смотри
#include "stdafx.h"
#include "xors3d.h"
#include <string>
using namespace std;
#pragma comment(lib,"xors3d.lib")
int _tmain(int argc, _TCHAR* argv[])
{
xGraphics3D( 100, 200, 32, 0, 1);
char* file = "test.ini";
int filein = xReadFile(file);
int carriage = 0;
string gLine;
while (! xEof(filein))
{
const char* lLine = xReadLine(filein,LS_NUL);
gLine = gLine + lLine;
carriage = carriage + 1;
}
char car[2];
sprintf(car,"%i",carriage);
while (! xKeyHit(1))
{
xCls();
xText( 62, 110, gLine.c_str(), 1, 1);
xText( 10,10, car);
xFlip();
}
}
вот в левом верхнем углу увидишь цифру 1 т.е. в файле 4 строки, и он все 4 запихивает в одну переменную за один проход, а мне надо чтоб он файл построчно читал
короче с флагами LS_CRLF или другими не пашет - в отладчике норм но xEof всегда возвращает какбудто не конец файла и зацикливается