Hi
I have a file in list view how can it dragdrop from it from list view to desktop and when i change in file(add some text in file ) on desktop it reflect in listview file .(Window application)
How can i moniter file like filezilla??
Thanks!
Loading
Sam HobbsPosted Jun 9, 2011, 7:02 AM
Sam HobbsPosted Jun 9, 2011, 6:50 AM
- dragdrop from it from list view to desktop
- when the file is changed on the desktop the changes are reflected in the listview
However I am sorry but I am having difficulty understanding what you are trying to do. I don't know how Filezilla works.Gomathi PalaniswamyPosted Jun 9, 2011, 2:24 AM
The below coding will edit file in run time,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace FileEdit
{
class Program
{
static void Main(string[] args)
try
{
//read
using(StreamReader objStreamreader=new StreamReader("test.txt"))
{
string filecontent = objStreamreader.ReadToEnd();
Console.WriteLine(filecontent);
//edit
filecontent = filecontent.Replace(" ", "Space");
Console.WriteLine(filecontent);
objStreamreader.Close();
//update
File.WriteAllText("test.txt",filecontent);
Console.WriteLine (filecontent);
Console.ReadLine();
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
}