2
Answers

C#, using resources-text files

Dude

Dude

14y
6.9k
1

Hi guys,

I need your help with following issue:

In my windows application form,I added text files to my resources, but I could not read, add data to those files. Can You explain me the procedure of doing that?

Thanx!

Answers (2)
0
Hirendra Sisodiya

Hirendra Sisodiya

NA 8.8k 3m 14y

Suppose you add one text file GetRecords.txt in resoureces.resx of windowApplication1
 you can read this text file as :
string str = WindowsApplication1.Properties.Resources.Get_Records;
 
thanks
Please mark as answere if it helps
Accepted
0
Dude

Dude

NA 4 0 14y
Oh my God, i didn't even thought this way was possible........ I was trying to get into the with FileStream & Stream......... it is unbelievably easy crap!!!
Thank You much for attention and help, Hirendra!
By the way, If I use this text file as resources(data) in my application, can I use it for storing, modifying and retrieving data from?