Hello,
got a question that has been bugging me

For example there is this text file:

Name: yyyy mm dd Phone: Email:
Andrew 1989 5 8 123459886 somethin@
Emma 1988 1 30 256497565 other@
Stan 1991 12 26 456548912 tell@
Charles 1975 8 11 123154894 2eee@


can i get first the values from the yyyy, mm , dd columns, then name column, then phone and then email, and input them into a string?

Recommended Answers

All 2 Replies

>>can i get first the values from the yyyy, mm , dd columns, then name column, then phone and then email, and input them into a string?

I don't know -- can you? I can, but I don't know if you can or not. (hint: read the line a word at a time into individual string, then arrange them however you want in the final string.)

Yes, but getting them in separate strings, the way they appear in the file, and then concatenating them the way you want is easier.

EDIT: Too slow...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.