Read in two files and write to a third file with merged stringsRemoving duplicates in listsHow to merge two dictionaries in a single expression?How to read a file line-by-line into a list?Correct way to write line to file?How to read a text file into a string variable and strip newlines?How do I write JSON data to a file?Representing and solving a maze given an imageReading lines from text file and deleting them each time the script is runReading Two Input FilesLoading a pre trained Keras model and predictingMerge two text files into a dictionary on python

Is it possible to do 50 km distance without any previous training?

What would happen to a modern skyscraper if it rains micro blackholes?

What do you call a Matrix-like slowdown and camera movement effect?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

tikz: show 0 at the axis origin

Why doesn't H₄O²⁺ exist?

How is it possible to have an ability score that is less than 3?

Mage Armor with Defense fighting style (for Adventurers League bladeslinger)

Today is the Center

Why do falling prices hurt debtors?

Dragon forelimb placement

Is it important to consider tone, melody, and musical form while writing a song?

Prove that NP is closed under karp reduction?

Email Account under attack (really) - anything I can do?

Why does Kotter return in Welcome Back Kotter?

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

What's the point of deactivating Num Lock on login screens?

Problem of parity - Can we draw a closed path made up of 20 line segments...

Smoothness of finite-dimensional functional calculus

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Risk of getting Chronic Wasting Disease (CWD) in the United States?

Python: next in for loop

Mathematical cryptic clues



Read in two files and write to a third file with merged strings


Removing duplicates in listsHow to merge two dictionaries in a single expression?How to read a file line-by-line into a list?Correct way to write line to file?How to read a text file into a string variable and strip newlines?How do I write JSON data to a file?Representing and solving a maze given an imageReading lines from text file and deleting them each time the script is runReading Two Input FilesLoading a pre trained Keras model and predictingMerge two text files into a dictionary on python






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















Given two text files, each line shows the absolute path of each image.



The first two lines of the first text file read



/home/picture/I10045.jpg
/home/picture/I10056.jpy


The first two lines of the second text file reads



Cat, Dog
Mouse, Mouse, Mouse


How is it that you would read in the two separate files and delete the duplicates of the second file. Then merge them together to make a third file.



Output in the third text file should read



/home/picture/I10045.jpg Cat, Dog
/home/picture/I10056.jpg Mouse









share|improve this question



















  • 2





    what's the error/problem that you're having?

    – Aldo Suwandi
    Mar 9 at 2:36

















-1















Given two text files, each line shows the absolute path of each image.



The first two lines of the first text file read



/home/picture/I10045.jpg
/home/picture/I10056.jpy


The first two lines of the second text file reads



Cat, Dog
Mouse, Mouse, Mouse


How is it that you would read in the two separate files and delete the duplicates of the second file. Then merge them together to make a third file.



Output in the third text file should read



/home/picture/I10045.jpg Cat, Dog
/home/picture/I10056.jpg Mouse









share|improve this question



















  • 2





    what's the error/problem that you're having?

    – Aldo Suwandi
    Mar 9 at 2:36













-1












-1








-1








Given two text files, each line shows the absolute path of each image.



The first two lines of the first text file read



/home/picture/I10045.jpg
/home/picture/I10056.jpy


The first two lines of the second text file reads



Cat, Dog
Mouse, Mouse, Mouse


How is it that you would read in the two separate files and delete the duplicates of the second file. Then merge them together to make a third file.



Output in the third text file should read



/home/picture/I10045.jpg Cat, Dog
/home/picture/I10056.jpg Mouse









share|improve this question
















Given two text files, each line shows the absolute path of each image.



The first two lines of the first text file read



/home/picture/I10045.jpg
/home/picture/I10056.jpy


The first two lines of the second text file reads



Cat, Dog
Mouse, Mouse, Mouse


How is it that you would read in the two separate files and delete the duplicates of the second file. Then merge them together to make a third file.



Output in the third text file should read



/home/picture/I10045.jpg Cat, Dog
/home/picture/I10056.jpg Mouse






python python-3.x python-2.x






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 2:57







Ken

















asked Mar 9 at 2:27









KenKen

93




93







  • 2





    what's the error/problem that you're having?

    – Aldo Suwandi
    Mar 9 at 2:36












  • 2





    what's the error/problem that you're having?

    – Aldo Suwandi
    Mar 9 at 2:36







2




2





what's the error/problem that you're having?

– Aldo Suwandi
Mar 9 at 2:36





what's the error/problem that you're having?

– Aldo Suwandi
Mar 9 at 2:36












3 Answers
3






active

oldest

votes


















2














This assumes that in your current working directory file1.txt contains:



/home/picture/I10045.jpg
/home/picture/I10056.jpy


and file2.txt contains



Cat, Dog
Mouse, Mouse, Mouse


It also assumes that we don't care about the order of the elements in each line of file2.txt since it uses set to remove duplicates. If you need that order i'd consider using a for loop instead of a comprehension and manually building a list while checking membership with in or making some unconventional use of OrderedDict, there's some more details on how to do that stuff in here: Removing duplicates in lists



#!/usr/bin/env python3

with open("file1.txt") as file1, open("file2.txt") as file2:
file1_lines = [line.strip("n") for line in file1]
file2_lines = [set(line.strip("n").split(", ")) for line in file2]

with open("file3.txt", "w") as file3:
for line1, line2 in zip(file1_lines, file2_lines):
print(line1, ", ".join(line2), file=file3)


The contents of file3.txt:



/home/picture/I10045.jpg Dog, Cat
/home/picture/I10056.jpy Mouse


An explanation of what's happening:



We open both input files using with, which is usually recommended.



We run a list comprehension on the open file1 object which just removes the newlines from each line, this will help when we join the lines together later.



We run another list comprehension over our open file2 object which removes newlines and then splits each line on commas into a set. This removes any duplicates and leaves us with a list of sets.



We open file3.txt for writing and use zip to allow us to iterate over both the lists we just made.
we use join to rebuild the lines in file2.txt with commas from the sets that are in file2_lines. We don't have to do anything special to the lines from file1.txt.



We use print with the file= argument to write to our file.. it's worth noting that this is file= won't work in python2 without importing print_function from __future__.. if you're using python2 you should probably just use file3.write() instead.






share|improve this answer
































    0














    #Function to remove the duplicates
    def remove_dup(s):
    temp_s = s.split(',') # Thinking that the second file only has the tags
    check =
    for i in temp_s:
    if i in check:
    check[i]+=1
    else:
    check[i]=1

    # Constructing the string
    return_string = ""
    for i in range(0,len(temp_s)):
    if check[temp_s[i]]==1 and i==0:
    return_string = return_string+temp_s[i]
    elif check[temp_s[i]]==1:
    return_string = return_string+", "+temp_s[i]

    return return_string

    #Reading in the files
    file1 = open('test1.txt','r')
    text1 = [i.rstrip() for i in file1]

    file2 = open('test2.txt','r')
    dup_text2 = [i.rstrip() for i in file2]

    # Removing duplicates
    text2 = [remove_dup(i) for i in dup_text2]

    # Adding the content
    text3 = [text1[i]+" "+text2[i] for i in range(0,len(text1))]

    # Writing to the file
    with open('test3.txt','w') as f:
    for line in text3:
    f.write("%sn" % line)


    I hope this helps






    share|improve this answer






























      0














      i=0
      with open('file3.txt', 'w') as outfile:
      with open('file1.txt', 'r') as file1, open('file2.txt', 'r') as file2:
      file2lines = file2.readlines()
      for line in file1 :
      outfile.write(line.replace('n', '').strip() + ' ' + str(set(file2lines[i].replace('n', '').replace(', ', ',').split(','))) + 'n')
      i=i+1


      It opens both files, then uses file1 as the main for loop. Most of the code is the text clean up (removing spaces, new lines etc) and then I used split to convert the animals into a list, and then used set to eliminate duplicates. Then I converted it back to a string.






      share|improve this answer























        Your Answer






        StackExchange.ifUsing("editor", function ()
        StackExchange.using("externalEditor", function ()
        StackExchange.using("snippets", function ()
        StackExchange.snippets.init();
        );
        );
        , "code-snippets");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "1"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55073426%2fread-in-two-files-and-write-to-a-third-file-with-merged-strings%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        2














        This assumes that in your current working directory file1.txt contains:



        /home/picture/I10045.jpg
        /home/picture/I10056.jpy


        and file2.txt contains



        Cat, Dog
        Mouse, Mouse, Mouse


        It also assumes that we don't care about the order of the elements in each line of file2.txt since it uses set to remove duplicates. If you need that order i'd consider using a for loop instead of a comprehension and manually building a list while checking membership with in or making some unconventional use of OrderedDict, there's some more details on how to do that stuff in here: Removing duplicates in lists



        #!/usr/bin/env python3

        with open("file1.txt") as file1, open("file2.txt") as file2:
        file1_lines = [line.strip("n") for line in file1]
        file2_lines = [set(line.strip("n").split(", ")) for line in file2]

        with open("file3.txt", "w") as file3:
        for line1, line2 in zip(file1_lines, file2_lines):
        print(line1, ", ".join(line2), file=file3)


        The contents of file3.txt:



        /home/picture/I10045.jpg Dog, Cat
        /home/picture/I10056.jpy Mouse


        An explanation of what's happening:



        We open both input files using with, which is usually recommended.



        We run a list comprehension on the open file1 object which just removes the newlines from each line, this will help when we join the lines together later.



        We run another list comprehension over our open file2 object which removes newlines and then splits each line on commas into a set. This removes any duplicates and leaves us with a list of sets.



        We open file3.txt for writing and use zip to allow us to iterate over both the lists we just made.
        we use join to rebuild the lines in file2.txt with commas from the sets that are in file2_lines. We don't have to do anything special to the lines from file1.txt.



        We use print with the file= argument to write to our file.. it's worth noting that this is file= won't work in python2 without importing print_function from __future__.. if you're using python2 you should probably just use file3.write() instead.






        share|improve this answer





























          2














          This assumes that in your current working directory file1.txt contains:



          /home/picture/I10045.jpg
          /home/picture/I10056.jpy


          and file2.txt contains



          Cat, Dog
          Mouse, Mouse, Mouse


          It also assumes that we don't care about the order of the elements in each line of file2.txt since it uses set to remove duplicates. If you need that order i'd consider using a for loop instead of a comprehension and manually building a list while checking membership with in or making some unconventional use of OrderedDict, there's some more details on how to do that stuff in here: Removing duplicates in lists



          #!/usr/bin/env python3

          with open("file1.txt") as file1, open("file2.txt") as file2:
          file1_lines = [line.strip("n") for line in file1]
          file2_lines = [set(line.strip("n").split(", ")) for line in file2]

          with open("file3.txt", "w") as file3:
          for line1, line2 in zip(file1_lines, file2_lines):
          print(line1, ", ".join(line2), file=file3)


          The contents of file3.txt:



          /home/picture/I10045.jpg Dog, Cat
          /home/picture/I10056.jpy Mouse


          An explanation of what's happening:



          We open both input files using with, which is usually recommended.



          We run a list comprehension on the open file1 object which just removes the newlines from each line, this will help when we join the lines together later.



          We run another list comprehension over our open file2 object which removes newlines and then splits each line on commas into a set. This removes any duplicates and leaves us with a list of sets.



          We open file3.txt for writing and use zip to allow us to iterate over both the lists we just made.
          we use join to rebuild the lines in file2.txt with commas from the sets that are in file2_lines. We don't have to do anything special to the lines from file1.txt.



          We use print with the file= argument to write to our file.. it's worth noting that this is file= won't work in python2 without importing print_function from __future__.. if you're using python2 you should probably just use file3.write() instead.






          share|improve this answer



























            2












            2








            2







            This assumes that in your current working directory file1.txt contains:



            /home/picture/I10045.jpg
            /home/picture/I10056.jpy


            and file2.txt contains



            Cat, Dog
            Mouse, Mouse, Mouse


            It also assumes that we don't care about the order of the elements in each line of file2.txt since it uses set to remove duplicates. If you need that order i'd consider using a for loop instead of a comprehension and manually building a list while checking membership with in or making some unconventional use of OrderedDict, there's some more details on how to do that stuff in here: Removing duplicates in lists



            #!/usr/bin/env python3

            with open("file1.txt") as file1, open("file2.txt") as file2:
            file1_lines = [line.strip("n") for line in file1]
            file2_lines = [set(line.strip("n").split(", ")) for line in file2]

            with open("file3.txt", "w") as file3:
            for line1, line2 in zip(file1_lines, file2_lines):
            print(line1, ", ".join(line2), file=file3)


            The contents of file3.txt:



            /home/picture/I10045.jpg Dog, Cat
            /home/picture/I10056.jpy Mouse


            An explanation of what's happening:



            We open both input files using with, which is usually recommended.



            We run a list comprehension on the open file1 object which just removes the newlines from each line, this will help when we join the lines together later.



            We run another list comprehension over our open file2 object which removes newlines and then splits each line on commas into a set. This removes any duplicates and leaves us with a list of sets.



            We open file3.txt for writing and use zip to allow us to iterate over both the lists we just made.
            we use join to rebuild the lines in file2.txt with commas from the sets that are in file2_lines. We don't have to do anything special to the lines from file1.txt.



            We use print with the file= argument to write to our file.. it's worth noting that this is file= won't work in python2 without importing print_function from __future__.. if you're using python2 you should probably just use file3.write() instead.






            share|improve this answer















            This assumes that in your current working directory file1.txt contains:



            /home/picture/I10045.jpg
            /home/picture/I10056.jpy


            and file2.txt contains



            Cat, Dog
            Mouse, Mouse, Mouse


            It also assumes that we don't care about the order of the elements in each line of file2.txt since it uses set to remove duplicates. If you need that order i'd consider using a for loop instead of a comprehension and manually building a list while checking membership with in or making some unconventional use of OrderedDict, there's some more details on how to do that stuff in here: Removing duplicates in lists



            #!/usr/bin/env python3

            with open("file1.txt") as file1, open("file2.txt") as file2:
            file1_lines = [line.strip("n") for line in file1]
            file2_lines = [set(line.strip("n").split(", ")) for line in file2]

            with open("file3.txt", "w") as file3:
            for line1, line2 in zip(file1_lines, file2_lines):
            print(line1, ", ".join(line2), file=file3)


            The contents of file3.txt:



            /home/picture/I10045.jpg Dog, Cat
            /home/picture/I10056.jpy Mouse


            An explanation of what's happening:



            We open both input files using with, which is usually recommended.



            We run a list comprehension on the open file1 object which just removes the newlines from each line, this will help when we join the lines together later.



            We run another list comprehension over our open file2 object which removes newlines and then splits each line on commas into a set. This removes any duplicates and leaves us with a list of sets.



            We open file3.txt for writing and use zip to allow us to iterate over both the lists we just made.
            we use join to rebuild the lines in file2.txt with commas from the sets that are in file2_lines. We don't have to do anything special to the lines from file1.txt.



            We use print with the file= argument to write to our file.. it's worth noting that this is file= won't work in python2 without importing print_function from __future__.. if you're using python2 you should probably just use file3.write() instead.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 9 at 4:05

























            answered Mar 9 at 3:43









            ZhenhirZhenhir

            36029




            36029























                0














                #Function to remove the duplicates
                def remove_dup(s):
                temp_s = s.split(',') # Thinking that the second file only has the tags
                check =
                for i in temp_s:
                if i in check:
                check[i]+=1
                else:
                check[i]=1

                # Constructing the string
                return_string = ""
                for i in range(0,len(temp_s)):
                if check[temp_s[i]]==1 and i==0:
                return_string = return_string+temp_s[i]
                elif check[temp_s[i]]==1:
                return_string = return_string+", "+temp_s[i]

                return return_string

                #Reading in the files
                file1 = open('test1.txt','r')
                text1 = [i.rstrip() for i in file1]

                file2 = open('test2.txt','r')
                dup_text2 = [i.rstrip() for i in file2]

                # Removing duplicates
                text2 = [remove_dup(i) for i in dup_text2]

                # Adding the content
                text3 = [text1[i]+" "+text2[i] for i in range(0,len(text1))]

                # Writing to the file
                with open('test3.txt','w') as f:
                for line in text3:
                f.write("%sn" % line)


                I hope this helps






                share|improve this answer



























                  0














                  #Function to remove the duplicates
                  def remove_dup(s):
                  temp_s = s.split(',') # Thinking that the second file only has the tags
                  check =
                  for i in temp_s:
                  if i in check:
                  check[i]+=1
                  else:
                  check[i]=1

                  # Constructing the string
                  return_string = ""
                  for i in range(0,len(temp_s)):
                  if check[temp_s[i]]==1 and i==0:
                  return_string = return_string+temp_s[i]
                  elif check[temp_s[i]]==1:
                  return_string = return_string+", "+temp_s[i]

                  return return_string

                  #Reading in the files
                  file1 = open('test1.txt','r')
                  text1 = [i.rstrip() for i in file1]

                  file2 = open('test2.txt','r')
                  dup_text2 = [i.rstrip() for i in file2]

                  # Removing duplicates
                  text2 = [remove_dup(i) for i in dup_text2]

                  # Adding the content
                  text3 = [text1[i]+" "+text2[i] for i in range(0,len(text1))]

                  # Writing to the file
                  with open('test3.txt','w') as f:
                  for line in text3:
                  f.write("%sn" % line)


                  I hope this helps






                  share|improve this answer

























                    0












                    0








                    0







                    #Function to remove the duplicates
                    def remove_dup(s):
                    temp_s = s.split(',') # Thinking that the second file only has the tags
                    check =
                    for i in temp_s:
                    if i in check:
                    check[i]+=1
                    else:
                    check[i]=1

                    # Constructing the string
                    return_string = ""
                    for i in range(0,len(temp_s)):
                    if check[temp_s[i]]==1 and i==0:
                    return_string = return_string+temp_s[i]
                    elif check[temp_s[i]]==1:
                    return_string = return_string+", "+temp_s[i]

                    return return_string

                    #Reading in the files
                    file1 = open('test1.txt','r')
                    text1 = [i.rstrip() for i in file1]

                    file2 = open('test2.txt','r')
                    dup_text2 = [i.rstrip() for i in file2]

                    # Removing duplicates
                    text2 = [remove_dup(i) for i in dup_text2]

                    # Adding the content
                    text3 = [text1[i]+" "+text2[i] for i in range(0,len(text1))]

                    # Writing to the file
                    with open('test3.txt','w') as f:
                    for line in text3:
                    f.write("%sn" % line)


                    I hope this helps






                    share|improve this answer













                    #Function to remove the duplicates
                    def remove_dup(s):
                    temp_s = s.split(',') # Thinking that the second file only has the tags
                    check =
                    for i in temp_s:
                    if i in check:
                    check[i]+=1
                    else:
                    check[i]=1

                    # Constructing the string
                    return_string = ""
                    for i in range(0,len(temp_s)):
                    if check[temp_s[i]]==1 and i==0:
                    return_string = return_string+temp_s[i]
                    elif check[temp_s[i]]==1:
                    return_string = return_string+", "+temp_s[i]

                    return return_string

                    #Reading in the files
                    file1 = open('test1.txt','r')
                    text1 = [i.rstrip() for i in file1]

                    file2 = open('test2.txt','r')
                    dup_text2 = [i.rstrip() for i in file2]

                    # Removing duplicates
                    text2 = [remove_dup(i) for i in dup_text2]

                    # Adding the content
                    text3 = [text1[i]+" "+text2[i] for i in range(0,len(text1))]

                    # Writing to the file
                    with open('test3.txt','w') as f:
                    for line in text3:
                    f.write("%sn" % line)


                    I hope this helps







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 9 at 3:24









                    sambasiva raosambasiva rao

                    1386




                    1386





















                        0














                        i=0
                        with open('file3.txt', 'w') as outfile:
                        with open('file1.txt', 'r') as file1, open('file2.txt', 'r') as file2:
                        file2lines = file2.readlines()
                        for line in file1 :
                        outfile.write(line.replace('n', '').strip() + ' ' + str(set(file2lines[i].replace('n', '').replace(', ', ',').split(','))) + 'n')
                        i=i+1


                        It opens both files, then uses file1 as the main for loop. Most of the code is the text clean up (removing spaces, new lines etc) and then I used split to convert the animals into a list, and then used set to eliminate duplicates. Then I converted it back to a string.






                        share|improve this answer



























                          0














                          i=0
                          with open('file3.txt', 'w') as outfile:
                          with open('file1.txt', 'r') as file1, open('file2.txt', 'r') as file2:
                          file2lines = file2.readlines()
                          for line in file1 :
                          outfile.write(line.replace('n', '').strip() + ' ' + str(set(file2lines[i].replace('n', '').replace(', ', ',').split(','))) + 'n')
                          i=i+1


                          It opens both files, then uses file1 as the main for loop. Most of the code is the text clean up (removing spaces, new lines etc) and then I used split to convert the animals into a list, and then used set to eliminate duplicates. Then I converted it back to a string.






                          share|improve this answer

























                            0












                            0








                            0







                            i=0
                            with open('file3.txt', 'w') as outfile:
                            with open('file1.txt', 'r') as file1, open('file2.txt', 'r') as file2:
                            file2lines = file2.readlines()
                            for line in file1 :
                            outfile.write(line.replace('n', '').strip() + ' ' + str(set(file2lines[i].replace('n', '').replace(', ', ',').split(','))) + 'n')
                            i=i+1


                            It opens both files, then uses file1 as the main for loop. Most of the code is the text clean up (removing spaces, new lines etc) and then I used split to convert the animals into a list, and then used set to eliminate duplicates. Then I converted it back to a string.






                            share|improve this answer













                            i=0
                            with open('file3.txt', 'w') as outfile:
                            with open('file1.txt', 'r') as file1, open('file2.txt', 'r') as file2:
                            file2lines = file2.readlines()
                            for line in file1 :
                            outfile.write(line.replace('n', '').strip() + ' ' + str(set(file2lines[i].replace('n', '').replace(', ', ',').split(','))) + 'n')
                            i=i+1


                            It opens both files, then uses file1 as the main for loop. Most of the code is the text clean up (removing spaces, new lines etc) and then I used split to convert the animals into a list, and then used set to eliminate duplicates. Then I converted it back to a string.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 9 at 3:32









                            Baris TasdelenBaris Tasdelen

                            1665




                            1665



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55073426%2fread-in-two-files-and-write-to-a-third-file-with-merged-strings%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

                                Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

                                2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived