Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Data Transfer
Re: Data Transfer [message #33460 is a reply to message #33456] Tue, 09 August 2011 12:36 Go to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Hello Shwetha

I do not understand you very well.

However you can try this and we can modify it to get what you need:

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);
}

index.php?t=getfile&id=3408&private=0
  • Attachment: dib.PNG
    (Size: 8.12KB, Downloaded 511 times)


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Block indent and dedent
Next Topic: 2 questions on ArrayCtrl and tray
Goto Forum:
  


Current Time: Fri Aug 22 08:04:32 CEST 2025

Total time taken to generate the page: 0.06309 seconds