In my Azure C# function I need to read a .txt file. I make the .txt file in Visual studio and set it to "copy Always".
Now I am using this code to read the file
var dir = System.IO.Path.GetDirectoryName(
System.Reflection.Assembly.GetEntryAssembly().Location);
var path = System.IO.Path.Combine(dir, "twinkle.txt");
this code doesn't work. When I open the folder which is the value of dir. It lead me to this directory ""C:\Users{username}\AppData\Local\Azure.Functions.Cli\1.0.9""
How I can store a simple txt file in Azure function. Or I need Azure Storage for this.
Anything else I can do to get this done.
Update for showing file copied