Embedding txt file to DLL file

Hi there,
I am trying to embed a text file with 40k records in C++ project, that exports DLL file.
I tried this in visual studio

1
2
3
  string myFile = {
	#include "lemmantization.txt"
  };


But it is not working. Error: String too big, trailing characters truncated.

Thanks for helping in advance.
closed account (E0p9LyTq)
Do you know how to deal with custom resources like icons and bitmaps? Using a resource script file?

A text file can be just as easily manipulated and embedded as a custom resource as an icon or bitmap.
Topic archived. No new replies allowed.