--- Pedro von Wald <[EMAIL PROTECTED]> wrote:

> I am working on the school proj, but I am having
> some difficult in
> processing the text file.
> Basically I am using the following to process the
> content of the file
> once it is copied to a mult. array (page[i][i]).
> 
> for (int x = 0; x <= page[1][1].size(); x++)
>     {
> 
>      
>
names[x][x]=page[1][1].substr(names[x][x].size(),page[1][1].find("
> ",names[x][x].size()));
>       cout << " TESTING 2: " << names[x][x] << "
> SIZE: " <<
> names[x][x].size();
>     }
> 
> where page is a mult. array that contains the file
> as a whole, and
> name is a mult array that is supposed to obtain each
> individual word
> inside the file. The problem is that the file has
> multiple spaces
> between the words and at the end of lines, besides
> it also contains
> "carriage returns" .
> 
> The whole code can retrieved at: 
> http://rafb.net/p/e8phJy32.html
> 
> thanks for any help,
> -pedro
> 
> 
> 

You can filter out the unnecessary control characters
etc. in your first loop before filling the Page array.



Mickey M.
Construction Partner Inc.
http://www.constructionpartner.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to