Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. double Tmoy = 0;
  2. K = 0;
  3. for (int j = 0; j < 655; j++)
  4. {
  5. for (int i = 0; i < 493; i++)
  6. {
  7. Tmoy += _SDKInstance.GetTemperatureAt(j, i);
  8. K += 1;
  9. }
  10. }
  11. Tmoy = Tmoy / K;
  12.  
  13. txtTmoy.Text = Tmoy.ToString();
  14.  
  15.  
  16. string docPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
  17. using (StreamWriter outputFile = new StreamWriter(System.IO.Path.Combine(docPath, "WriteLines.txt"), true))
  18. {
  19.  
  20.  
  21. outputFile.WriteLine(DateTime.Now.ToString()+";"+ Tmoy.ToString());
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement