Advanced Forum Search Results
-
Hi Pushpendra,
Ok, Silverlight cannot open a text file and read from it.
The relevent parts of .NET are unavailable through Silverlight... for security I guess.
You can, however, read and process data from an XML file using XMLReader and StreamReader. As I said, if you can fool Silverlight into thinking the file you're opening is an ...
-
I'm reading comma-delimited text, like a CSV file.
After opening the file search it for an XML tag (which you've manually put in there around the data you want to read). Then do normal string processing on the result to seperate the data into variables etc. The MSDN example on XMLReading shows you how to read it easily.
So for ...
-
Oh... and also, (I totally forgot sorry), you have to read the file as if it's an XML file. The only way I could read content from a TXT file was to manually put <tags> and </closetags> around the actual content of the file I'm reading.
I think the StreamReader example on the MSDN site shows how to read and ...
-
I think your filename isn't right. I've written a function in VB for an app I'm making that returns a string that's compatible with the StreamReader.
Hope this helps :)
Public Function GetFileUrl() As String
Dim path = Browser.HtmlPage.DocumentUri.AbsolutePathDim lastSlash = path.LastIndexOf("/")
path ...
-
You can only streamread a file if it's on a server. are you using IIS to test the page?
-
I guess OpenGL is not an option either :D
Shame really. I'd really like to be able to use proper 3D in Silverlight. That's something I miss about Director that MS should really try to cover.
-
*double bump*
I'm thinking about using video sprites and a chroma-key would be just the thing I need.