   how do you break up a long string?
  I have a long string that I want to make into little strings. How would I go about doing that?   
  Are you asking about how to break up a string literal? In C, and probably in C++, use double quotes and new lines. For example:char *text = "blah blah blah blah blah blah blah blah blah"  "blah blah blah blah blah blah blah blah blah"  "blah blah blah blah blah blah blah blah blah"  "blah blah blah blah blah blah blah blah blah";;  VB has the split function.  In C/C++ you would just cut it up based on a certain character or if your doing something like tokenizing it you would need to parse through the string and copy segments into other arrays/strings   ;  You're going to have to be a little more specific. What language are you coding in? What are the characteristics of the input string? What rules do you have for breaking it up?jfl.   ;  well firs it is a string and I use getline to pull info and put it into a string. So now I have one big string that I have to make usable.I am using C++. and the issue is I dont know how to break up the string.   ;  Parse through it.  Different ways to do it.  You could have an array of strings (so an array of arrays pretty much) and split it by spaces and fill up the array with the strings.  Simple, hope that helps.BTW, your still not being very specific but I believe your trying to just parse a string so you should be fine with what I just told you.   ;  this is what I have. test is one big string and I need to break it up for every newline and second string needs to be stored in its own verible.#include <cstdlib>#include <iostream>#include <fstream>using namespace std; string string1;string test,name;int main(int argc, char *argv[]){    name = "BallSpin";   ifstream fin("image1.txt"); do{   getline(fin,test, ' ');   getline(fin,test, '\n');    // cout<<test<<endl;}while (test !=name);do{getline(fin,string1,'\n');   if (string1 == "File ")  {cout<<"bong";}  test += '\n' + string1;    }while (string1 != ";");  cout<<test<<endl; system("PAUSE");    return EXIT_SUCCESS;}the out put isBallSpinFile <- not this BallSpin.bmp <-this needs to be storedLeft <- not this 0 <- this but it needs to be stored according to what is not storedRight 92#Top 0Bottom 0Red 0Green 0Blue 0Delay 0Width 0FrameW 0;Press any key to continue . . .   ;  so whats the problem?   ;  Look at the C library call strcspn() (and strspn()), and then use strncpy() and manual zero-termination to create a new string containing only a subset of the string. You may also want to look at the (evil!) function strtok() (which isn't thread safe).There's also the C++ library find_first_of() and find_first_not_of(), which are the moral equivalents; creating a sub-string of a C++ std::string is somewhat more convenient than using strncpy() and terminating yourself.   ;  the out put came from the string test. now I need take "File" and what ever is after it  "BallSpin.bmp" store it in a differnt string then take "Left" and what ever is after it and store it in another string.Note: I want to  discared File and Left after collecting the data.   