Patch level :10.0

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
aggiunta condizione alla load_file che tenga conto della EOF (sennò aggiungeva un item di troppo)


git-svn-id: svn://10.65.10.50/trunk@20250 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2010-03-22 09:52:27 +00:00
parent b790957910
commit 022f1fdd40

View File

@ -75,7 +75,7 @@ bool TText_recordset::load_file(const TFilename& n)
TString str(4096);
char* buf = str.get_buffer();
ifstream f(n);
while (f)
while (f && !f.eof())
{
f.getline(buf, str.size());
new_rec(buf);