1

I have a code that contains a path (reads some information from my computer).

For example, the file path is as follows -> "C:\Users...\Desktop\admin\class1\Info\text\file.txt" My wish is the following.

How can I attach those files to code so that the program can run on another computer?

My program is made in C#.

Artur
  • 53
  • 5
  • The following may be helpful: https://stackoverflow.com/questions/3314140/how-to-read-embedded-resource-text-file – Tu deschizi eu inchid Dec 23 '21 at 17:32
  • 1
    Add the file to the solution and set its compile action as content, make the code look for it alongside the exe. Or put it in resources and use it from there – Caius Jard Dec 23 '21 at 18:21

0 Answers0