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++ SQL » sqlapp example
Re: sqlapp example [message #16168 is a reply to message #16061] Fri, 30 May 2008 09:54 Go to previous message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Why dev712 version?
The (not really) stable 2007 is more fresh, 2008.1 beta2 is probably even more stable now or problems are reported in forum, and if you want to be on development edge, there are SVN builds too.

About opening file. To have them all at 1 line is a bit unfortunate, as the UPP::Stream does have "String GetLine();" function.
So for you the solution is probably to read char by char ( int UPP::Stream::Get() ) and react properly on tab (\t) or -1 and build the strings/arrays from this.
As long as you are 100% sure about validity of input file this piece of code can be quite short and clean, but in real world it will probably take a bit more effort.

Maybe there are some additional functions in UPP to help with parsing text files, but I'm not aware of them, sorry.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Newbie help with PostgreSQL example
Next Topic: MySQL easy guide
Goto Forum:
  


Current Time: Mon Aug 25 23:14:21 CEST 2025

Total time taken to generate the page: 0.06090 seconds