R
Roman Mellenberger
Is it possible to to open files from a shared network folder?
The following code works with local files but not in the network
folder:
public static string testRead()
{
string str = @"\\192.168.0.25\daten\test.txt";
//string str = @"\storage card\test.txt";
try
{
using (StreamReader srD = new
StreamReader(str))
{
return srD.ReadLine();
}
}
catch (Exception ex)
{
return "Could not read file " +
ex.Message;
}
}
Thanks
Roman
The following code works with local files but not in the network
folder:
public static string testRead()
{
string str = @"\\192.168.0.25\daten\test.txt";
//string str = @"\storage card\test.txt";
try
{
using (StreamReader srD = new
StreamReader(str))
{
return srD.ReadLine();
}
}
catch (Exception ex)
{
return "Could not read file " +
ex.Message;
}
}
Thanks
Roman