Unable to write to a text file in Windows Phone
source link: https://www.codesd.com/item/unable-to-write-to-a-text-file-in-windows-phone.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Unable to write to a text file in Windows Phone
Ok so I need to write to a text file on my home network in c#. The problem is that I cant use anything with System.IO.File
because it is not supported on Windows Phone. I'm trying to use System.IO.StreamWriter
but this is creating a problem.
System.IO.StreamWriter ow;
ow = new System.IO.StreamWriter(@"\\RASPBERRYPI\pi\led.txt");
This is as far as I have got and it says:
"Cannot convert from string to System.IO.Stream"
I have been searching for an answer for this but nobody seems to have this problem.
You can't. Windows Phone does not support accessing SMB / network file shares.
Related Articles
unable to write and add text file android
Loading the TEXT file in Windows Phone 8.1
LINQ to text file in Windows Phone 7
Unable to write to a text file using timer in C #
How to write text in a Windows Phone 8 file?
iterate through a text file and write a new text file for each python line
How do I write in the text file out of scope, it is set to?
How to write to a text file in an activity & amp; to read this file in another activity?
Write to a text file using Javascript
How do I write to a text file by replacing the number on the same line?
How do I write to a text file using AppleScript?
Not able to write to a text file
c # write to the text file on the site via php
How to write to a text file until the request is closed
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK