© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3mo ago•
194 replies
Buhalter

String manipulation etc

https://paste.mod.gg/qiqfbdvjrwru/0

I have this task:

Print to the file ManoKnyga.txt a merged text, composed according to the following rules:

Text from the first file is copied until the first non-copied word from the second file is encountered, or the end of the file is reached;

Text from the second file is copied until the first non-copied word from the first file is encountered, or the end of the file is reached;

This is repeated until the end of both files is reached.


The issue I'm facing with the code I have is that the method does not output the correct results. It has to check each word from each file simultaneously line by line to see check wether the word in one file matches another, if it does then the code has to be appended from the 2nd file and vice versa, until the end of both files is reached.
BlazeBin - qiqfbdvjrwru
A tool for sharing your source code with the world!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Optimizing some string manipulation
C#CC# / help
4y ago
Write a String manipulation program [Answered]
C#CC# / help
4y ago
❔ DBSet manipulation
C#CC# / help
3y ago
Text Manipulation
C#CC# / help
4y ago