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 » U++ Library support » U++ Core » Problem with big text file
Problem with big text file [message #36856] Thu, 12 July 2012 18:21 Go to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I am trying to parse a 44 Mb text file in a console project. Each rows contains record like this
227965,2008.03,11907,2299,25055,2198,0.00

It seems that LoadFile and FileIn have problem to read it and the program crash. Is there some limit to the file size?
It looks strange as the same file in a gui program is loaded with LoadFile and set corectly in a LineEdit. Rolling Eyes

Thanks,
Luigi

(U++ 4603 with TDM-GCC).
Re: Problem with big text file [message #36857 is a reply to message #36856] Thu, 12 July 2012 19:09 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Sorry, Embarassed
false allarm... the error was in next line of my code... here is very hot weather Smile

Luigi
Re: Problem with big text file [message #36858 is a reply to message #36857] Thu, 12 July 2012 19:28 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Laughing

Best regards
IƱaki
Re: Problem with big text file [message #36873 is a reply to message #36856] Sun, 15 July 2012 21:21 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
forlano wrote on Thu, 12 July 2012 12:21

It seems that LoadFile and FileIn have problem to read it and the program crash. Is there some limit to the file size?



Just for record, String is limited to 2GB - that limits LoadFile as well..
Previous Topic: Jsonize of strings is corrupted
Next Topic: [Solved]XMLRpcClient in U++ version 5185
Goto Forum:
  


Current Time: Fri Apr 19 22:01:07 CEST 2024

Total time taken to generate the page: 0.03293 seconds