Say I have a dictionary.txt file, I need to read it into a map and use it in my program, how can I make this dictionary.txt file contained in the compiled exe file?
Say I have a dictionary.txt file, I need to read it into a map
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can store serialized data types as bytestring literals. Here’s an example:
However, the file-embed automates this process, making it easier to do non-trivial embeddings.
All approaches essentially boil down to representing the static data as a bytestring literal,