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 » Is there a token function?
Re: Is there a token function? [message #2732 is a reply to message #2728] Sun, 23 April 2006 14:50 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
fudadmin wrote on Sun, 23 April 2006 07:57

forlano wrote on Sun, 23 April 2006 12:55

fudadmin wrote on Sun, 23 April 2006 13:35

forlano wrote on Sun, 23 April 2006 12:31

fudadmin wrote on Sun, 23 April 2006 11:50

Why there is no String::GetLine()? or I can't find?


There is. After typing
FileIn in(filename);
if I add a '.' - FileIn in(filename).; - appear a list in which I can see GetLine().




String s;
s.GetLine(); ???



FileIn in;
String s;
...
s = in.GetLine();

I'm using it to get a record from a file. Maybe you mean from stdin?



What if I don't have any files?



Quite unclear what is the question, however, a good oportunity to introduce fact that you can turn any sort of character data into stream using

StringStream

or

MemStream

or

MemReadStream

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there a function to remove leading white space?
Next Topic: TimeDate.cpp [BUG][FIXED]
Goto Forum:
  


Current Time: Wed Sep 03 19:59:21 CEST 2025

Total time taken to generate the page: 0.06785 seconds