Visual Studio 2008 を使用して、モバイル デバイス用のアプリケーションを開発する必要があります。アプリケーションは、ファイルの読み取りと書き込みを行う必要があります。
モバイル デバイスまたは VS のデバイス エミュレーターでアプリケーションを実行するときに、ファイルがどこにあるのかわからないという問題があります。PC でアプリケーションを実行すると、すべて正常に動作します。
何をすべきか、どこを見ればよいか教えていただけますか?
前もって感謝します!
言いませんでしたが、Windows Mobile 6.5 用です。
PS は StringBuilder を次のように操作しようとしました。
StringBuilder sb = new StringBuilder();
using (StreamReader sr = new StreamReader("TestFile.txt"))
{
String line;
// Read and display lines from the file until the end of
// the file is reached.
while ((line = sr.ReadLine()) != null)
{
sb.AppendLine(line);
}
}
string allines = sb.ToString();