I ran into a problem. This is how my code looks
UnifiedFile uf = (UnifiedFile)GenericHostingEnvironment.VirtualPathProvider.GetFile(sPath);
path is taken from a property on the page url to document
Stream fs = uf.Open();
This works until the file is checked out; after this i get an error saying that the path is invalid
Is it normal?
ok i am able to read the file while is checked out obtaining a stream reader based on unifiedfile.locapath, however this is going nowhere because that file has the last checkedin version
So, is there any way to read the file that was saved but not checked in yet?