I have to read a txt
file with for example this:
test
test2
test3
test4
If I use a this code
read_of_string = open("mylink.txt", "r")
read_of_string = read_of_string.readlines()
print(read_of_string)
a output is ["test/n","test2/n","test3/n","test4/n"]
if I use this code
print(read_of_string[0])
output is "test" (enter)
I have to append it into a
listofstring = []
listofsting.append(read_of_string)
it is not working Output should be a list with strings without enters like
["test","test2","test3","test4"]