Hi,
Requirement: I want to read data from a file located at remote server. My code can read data from local server easily but I need to read data from remote server now (coz this is the actual requirement).
My Code:
//1. Entries in web.config:
<add key="logFileLocation" value="~/data/oogeog_weather_data.dat"/>
<identity impersonate="true" userName="IUSR_WEBSERVER" password="oogeog++"/>
//2. Class which accesses the data:
internal class WeatherDataFILEDBO
{
private string _fileLocationString = null;
internal WeatherDataFILEDBO()
{
_fileLocationString = System.Configuration.ConfigurationManager.AppSettings["logFileLocation"];
}
...........................
..............................
private DataTable Convert(string sLogFile, int numberOfLines)
{
if (!System.IO.File.Exis ...
Go to the complete details ...