This question is locked. New answers and comments are not allowed.
Thanks for the Converter, it normally works great. I found a function that can crash it though and wanted to let you know.
The while line does a variable assignment and then checks to see if it is null. Although correct in C#, it isn't very pretty code.
Thanks Again
Randy
private string LoadData(string fileName)
{
string data = String.Empty;
using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication()) {
using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(fileName, FileMode.Open, isf)) {
using (StreamReader sr = new StreamReader(isfs)) {
string lineOfData = String.Empty;
while ((lineOfData = sr.ReadLine()) != null)
data += lineOfData;
}
}
}
return data;
}
The while line does a variable assignment and then checks to see if it is null. Although correct in C#, it isn't very pretty code.
Thanks Again
Randy
private string LoadData(string fileName)
{
string data = String.Empty;
using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication()) {
using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(fileName, FileMode.Open, isf)) {
using (StreamReader sr = new StreamReader(isfs)) {
string lineOfData = String.Empty;
while ((lineOfData = sr.ReadLine()) != null)
data += lineOfData;
}
}
}
return data;
}