• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Advanced String manipulation..

New Here ,
May 09, 2006 May 09, 2006

Copy link to clipboard

Copied

I need a some help. This problem is a bit over my head.

An input text file looks like this
Hello world!
989898281599
123123123123
How are you?
982991288599
123123123123
I need an output file that capitalizes every character where the number in
the second row of each group is less than eight. In general terms what
would you do and what CF functions would you be using?
Output file looks like this:
Hello WoRLd!
989898281599
123123123123
HoW aRe you?
982991288599
123123123123

Thanks
TOPICS
Advanced techniques

Views

312

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
May 09, 2006 May 09, 2006

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 10, 2006 May 10, 2006

Copy link to clipboard

Copied

The following code converts the text, all you have to add are the read/write file functions:

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 10, 2006 May 10, 2006

Copy link to clipboard

Copied

LATEST
This is my result, your example is not quite correct:

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation