I see the same thing. The msg.topic is sent thru on every line but the last line of the file.
10/25/2019, 4:50:12 AMnode: cf302004.413cd8
test out : msg : Object
{ payload: "line 1", topic: "test out", filename: "/Users/Paul/test.txt", parts: object, _msgid: "5fdf0b45.3adad4" }
10/25/2019, 4:50:12 AMnode: cf302004.413cd8
test out : msg : Object
object
payload: "line 2"
topic: "test out"
filename: "/Users/Paul/test.txt"
parts: object
index: 1
ch: "āµ"
type: "string"
id: "27cda854.0a2fc8"
_msgid: "c3a748f6.3b23b8"
10/25/2019, 4:50:12 AMnode: cf302004.413cd8
msg : Object
object
payload: "line 3"
parts: object
index: 2
count: 3
ch: "āµ"
type: "string"
id: "27cda854.0a2fc8"
_msgid: "37349951.ffffa6"
[{"id":"a8c74407.ec8b58","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"d5fe1576.59f688","type":"file in","z":"a8c74407.ec8b58","name":"","filename":"/Users/Paul/test.txt","format":"lines","chunk":false,"sendError":false,"encoding":"none","x":390,"y":860,"wires":[["cf302004.413cd8"]]},{"id":"aaf27b4b.03a708","type":"inject","z":"a8c74407.ec8b58","name":"","topic":"test out","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":860,"wires":[["d5fe1576.59f688"]]},{"id":"cf302004.413cd8","type":"debug","z":"a8c74407.ec8b58","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":570,"y":860,"wires":[]}]