Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to add data to an txt file everytime the mouse event happens!
what should i do?

(Im an amatör please give me a code)
Posted

1 solution

Use the following code snippet in your mouse event handler:
C#
StreamWriter sw = File.AppendText("filename.ext");
sw.WriteLine("text to append");
sw.Close();
 
Share this answer
 
Comments
Pravin Patil, Mumbai 13-Sep-11 10:34am    
Write this code on the desired mouse event....
shiny1366 13-Sep-11 10:35am    
thank u so much!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900