Write a program to open a text file which contains two strings, i.e. your first name and last name, read those names and concatenate them and print in a text called fullname.txt. (Note concatenating strings example string1 + string2 if they are of two strings)
fin = open ("twostrings.txt")
firstname, lastname = fin.readline()[:-1], fin.readline()
fout = open ("fullname.txt", "w")
fout.write(firstname + " " + lastname)
fout.close()