Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double Tmoy = 0;
- K = 0;
- for (int j = 0; j < 655; j++)
- {
- for (int i = 0; i < 493; i++)
- {
- Tmoy += _SDKInstance.GetTemperatureAt(j, i);
- K += 1;
- }
- }
- Tmoy = Tmoy / K;
- txtTmoy.Text = Tmoy.ToString();
- string docPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
- using (StreamWriter outputFile = new StreamWriter(System.IO.Path.Combine(docPath, "WriteLines.txt"), true))
- {
- outputFile.WriteLine(DateTime.Now.ToString()+";"+ Tmoy.ToString());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement