amit2620 wrote:
i want to develop a text file in C#.net that is read only
Assuming you're creating a text file. See the following MSDN page for an example on changing file attributes:
"File.SetAttributes Method"[
^].
amit2620 wrote:
The another feature of that file is that if some body wants to copy it,message blinks that says u cant copy the selected file.I have searched too much over net but i cant get any solution.please help me how to make such a file
As far as I know, you cannot do that (you may encrypt the file, if you want to hide it's content).