fb pixel

Concatenation of files

Given two files:
  1. names.txt which contains the first names of the customers,
  1. surnames.txt which contains the surnames of those people in the same order,
You are asked to merge those files and create a new one named fullnames.txt which would contain the names and the surnames separated by a space. It’s guaranteed that the names.txt and the surnames.txt contain the same number of lines.
names.txt
Arthur
Anna

surnames.txt
Brown
Black

fullnames.txt
Arthur Brown
Anna Black
 
To check your solution you need to sign in
Sign in to continue