Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to removewhat is common from one text file using another text file
#1
I have a file that contains the following text.

File1.txt

For all intents and purposes, the reason Mr. Henderson arrived late for work was due to the fact that he stopped at very many traffic lights that were red in colour.
I then have another file with the following text.

File2.txt

[ 4 , 0 , "For all intents and purposes, t" , "T" , 3 , "he reason Mr. " , 3 , "Henderson arrived late for work was " , 0 , "d" , "beca" , 3 , "u" , 2 , "s" , 3 , "e" , 1 , " to the fact that" , 3 , " he stopped at very many traffic lights that were red " , 1 , "in" , 3 , " " , 1 , "colour" , 3 , ". " , 4 , 4 ]

I wish to use File2.txt to remove what is common to file1.txt. Outputting the result to File3.txt.
The contents of File3.txt should when done look like this.

Mr. Henderson arrived late for work because he stopped at many red lights.
Quote
#2
what have you tries so far?
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Text file information retreval cel 4 149 Yesterday, 02:21 AM
Last Post: cel
  Change Text Size in Console? ShakeyPakey 8 204 Jun-03-2020, 08:48 AM
Last Post: buran
  can't save text string branko316 2 166 May-31-2020, 02:46 PM
Last Post: branko316
  Selecting text as an input lazerwolf101 2 136 May-29-2020, 06:52 AM
Last Post: lazerwolf101
  Read Multiples Text Files get specific lines based criteria zinho 5 250 May-19-2020, 12:30 PM
Last Post: zinho
  Python re.sub text manipulation on matched contents before substituting xilex 2 158 May-19-2020, 05:42 AM
Last Post: xilex
  ChatterBot: How to store unanswered question in a text file? animrehrm 0 102 May-16-2020, 06:00 AM
Last Post: animrehrm
  Googles Text to speech justindiaz7474 0 101 May-06-2020, 02:04 AM
Last Post: justindiaz7474
  Coordinates from a text file garry1415 7 286 May-04-2020, 01:29 PM
Last Post: DeaD_EyE
  Call a python file with anothr python file skaailet 3 178 Apr-30-2020, 03:41 PM
Last Post: deanhystad

Forum Jump:


Users browsing this thread: 1 Guest(s)