grid.AddColumn("Data"); String data = LoadFile(AppendFileName(GetDesktopFolder(), "test2.log")); for (int row = 0, ind = 0; true; row++) { int endLine = data.Find('\n', ind); if (endLine == -1) endLine = data.GetCount()-1; String rowText = data.Mid(ind, endLine-ind); ind = endLine+1; if (rowText.IsEmpty()) break; grid.Set(row, 0, rowText); }
Report message to a moderator