{"id":131,"date":"2012-08-28T13:38:24","date_gmt":"2012-08-28T13:38:24","guid":{"rendered":"http:\/\/www.mahmuttalhakoz.com\/blog\/?p=131"},"modified":"2012-08-28T13:38:24","modified_gmt":"2012-08-28T13:38:24","slug":"listview-ile-notepad-uzerinden-veri-cekmek","status":"publish","type":"post","link":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/2012\/08\/28\/listview-ile-notepad-uzerinden-veri-cekmek\/","title":{"rendered":"ListView ile NotePad uzerinden veri cekmek"},"content":{"rendered":"<p>&#8211; ListView objesine 7 tane sutun ekliyoruz. ( Not defterinde her satirda 6 ayrac (,) iceren veri var)<br \/>\n&#8211; ListView objesinin View ozeligini &#8220;Details&#8221; olarak degistiriyoruz.<\/p>\n<p><a href=\"https:\/\/www.mahmuttalhakoz.com\/blog\/wp-content\/uploads\/2012\/08\/listview.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mahmuttalhakoz.com\/blog\/wp-content\/uploads\/2012\/08\/listview-300x134.png\" alt=\"\" title=\"ListView&#039;de NotePad&#039;den satir satir ve belirlenen ayraclardan veri cekmek\" width=\"300\" height=\"134\" class=\"alignnone size-medium wp-image-132\" srcset=\"https:\/\/www.mahmuttalhakoz.com\/blog\/wp-content\/uploads\/2012\/08\/listview-300x134.png 300w, https:\/\/www.mahmuttalhakoz.com\/blog\/wp-content\/uploads\/2012\/08\/listview.png 964w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><code><br \/>\nDialogResult Dr = openFileDialog1.ShowDialog();<br \/>\n            if (Dr == DialogResult.OK)<br \/>\n            {<\/p>\n<p>                StreamReader dosya;<br \/>\n                string yazi;<br \/>\n                dosya = File.OpenText(openFileDialog1.FileName);<br \/>\n                yazi = dosya.ReadLine();<br \/>\n                while (yazi != null)<br \/>\n                {<\/p>\n<p>                    int i = 0;<br \/>\n                    string[] dizi = new string[6];<br \/>\n                    foreach (string deger in yazi.Split(','))<br \/>\n                    {<br \/>\n                        dizi[i] = deger;<br \/>\n                        i++;<br \/>\n                    }<br \/>\n                    ListViewItem item = new ListViewItem(\"->\");<br \/>\n                    item.SubItems.AddRange(dizi);<br \/>\n                    listView1.Items.Add(item);<br \/>\n                    yazi = dosya.ReadLine();<br \/>\n                }<br \/>\n                dosya.Close();<br \/>\n            }<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8211; ListView objesine 7 tane sutun ekliyoruz. ( Not defterinde<span class=\"more-dots\"><a href=\"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/2012\/08\/28\/listview-ile-notepad-uzerinden-veri-cekmek\/\">[ &#8230; ]<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[42,40,45,41,46,43,44],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-csharp","tag-ayrac","tag-listview","tag-listview-details","tag-notepad","tag-subitem","tag-veri","tag-veri-cekmek"],"_links":{"self":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":3,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":135,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/131\/revisions\/135"}],"wp:attachment":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}