Xilinx Line  has not enough elements for target  for the file with more than one line
I'm not an expert by any means, but my first guess is that you have a compatibility issue with regard to line endings between your text editor and your simulator.

I just did a quick survey of Std.Textio implementations on the web, and found that they are not consistent in this regard. Indeed, the standard itself is rather vague on this topic.

I think that what is happening is that your text editor is putting double character line endings (i.e., either CRLF or LFCR) in the file, but your simulator is looking for single characters (i.e., just CR or just LF). When it sees two characters, it interprets that as an empty line, which is what causes the message that you see.

I would recommend:


Do a binary dump of your text file to see what kind of line endings are actually there.
Create a file with just single-character line endings (by whatever means necessary).