c# - Store Text to String[] Arrays? -
this question has answer here:
- how read text file line line windows rt? 3 answers
how can store data text string or array in windows store using c#? tried method did not work:
string[] phparay ={@"f:\designe- video\projects\phpgonehelp\phpgonehelp\phpcode\php1.txt"};
i thought execute data text file, unfortunately prints text path.
i think you'r looking this:
string[] lines = system.io.file.readalllines(@"f:\designe- video\projects\phpgonehelp\phpgonehelp\phpcode\php1.txt");
this taken https://msdn.microsoft.com/en-us/library/ezwyzy7b.aspx
Comments
Post a Comment