Windows 8.1 App.Getresourcestream Problem

Asked

Viewed 21 times

1

I have a problem in a method on windows phone. It reads an xml file and returns a string, the problem is that this method only works on windows 8 and not on windows 8.1. It follows the code:

public static String readFile(String path)
        {
            var resource = App.GetResourceStream(new Uri(path, UriKind.Relative));
            StreamReader reader = new StreamReader(resource.Stream);
            String arquivo = reader.ReadToEnd();
            return arquivo;
        }
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.