将文本存储到String []数组?

时间:2015-06-02 21:08:06

标签: c# arrays c#-4.0 winrt-component

如何使用C#将数据文本存储到Windows应用商店的字符串或数组中? 我试过这种方法,但它不起作用:

 string[] phparay ={@"F:\Designe- Video\projects\Phpgonehelp\Phpgonehelp\PHPCODE\Php1.txt"};

我认为这会执行文本文件中的任何数据,但不幸的是它只是打印文本路径。

1 个答案:

答案 0 :(得分:0)

我认为你要找的是:

[[NSOperationQueue mainQueue] addOperationWithBlock:^{
        alert = [[UIAlertView alloc]initWithTitle:@""
                                  message:[NSString stringWithFormat: @"Reload data ?"]
                                 delegate:self
                        cancelButtonTitle:@"Yes"
                        otherButtonTitles:@"Cancel", nil];    
       [alert show];
       NSLog(@"executed");
    }];

这取自https://msdn.microsoft.com/en-us/library/ezwyzy7b.aspx