{"id":8611,"date":"2009-07-29T07:42:00","date_gmt":"2009-07-29T07:42:00","guid":{"rendered":"http:\/\/melotopia.net\/b\/?p=8611"},"modified":"2009-07-29T07:42:00","modified_gmt":"2009-07-29T07:42:00","slug":"visual-basic%ec%97%90%ec%84%9c-%ed%8c%8c%ec%9d%bc-%ec%9d%bd%ea%b3%a0-%ec%93%b0%ea%b8%b0-%ec%82%bd%ec%a7%88","status":"publish","type":"post","link":"http:\/\/melotopia.net\/b\/?p=8611","title":{"rendered":"Visual Basic\uc5d0\uc11c \ud30c\uc77c \uc77d\uace0 \uc4f0\uae30 \uc0bd\uc9c8"},"content":{"rendered":"<div class=\"desc\">\n        \uc0bd\uc9c8 \uae30\ub85d.<\/p>\n<p>        \ub0b4\uac00 \uac16\uace0 \uc788\ub294 \uac83<br \/>\n        <br \/>\n        labels()  :  \uba87\uac00\uc9c0 \uc774\ub984\uc774 \ub4e4\uc5b4\uc788\ub294 \ubc30\uc5f4<br \/>\n        <br \/>\n        config.txt : labels()\uac00 \uc800\uc7a5\ub418\ub294 \ud30c\uc77c<\/p>\n<p>        \uc6d0\ud558\ub294 \uac83<br \/>\n        <br \/>\n        config.txt\uc5d0 labels()\uc758 \ub0b4\uc6a9\uc744 \uc4f0\uace0 \uc2f6\uc740\ub370, \uc774\ubbf8 \uc788\ub294 \ub0b4\uc6a9\uc774\ub77c\uba74 \uadf8\ub0e5 \ub194\ub450\uace0 \uc5c6\uc73c\uba74 \ub05d\uc5d0\ub2e4 \ucd94\uac00\ud55c\ub2e4<\/p>\n<p>        \ud604\uc7ac \uad6c\ud604\ub41c \uc0c1\ud0dc<br \/>\n        <br \/>\n        readline(config.txt)\uc73c\ub85c \ubd88\ub7ec\uc624\uace0<br \/>\n        <br \/>\n        \uc801\ub2f9\ud55c \ube44\uad50 \uad6c\ubb38\uc73c\ub85c \ucc3e\uc544\ubcf8 \ud6c4<br \/>\n        <br \/>\n        \uc5c6\ub294 \uc560\ub4e4\ub9cc \uace8\ub77c\uc11c<br \/>\n        <br \/>\n        writeline(config.txt)\uc73c\ub85c \uc800\uc7a5<\/p>\n<p>        \uadf8\ub7f0\ub370 \uc624\ub958 \ubc1c\uc0dd. IOexception \uc5d0\ub7ec. \ubd84\uba85\ud788 readline \ud6c4\uc5d0 dispose\ud558\uace0 close\ud588\ub294\ub370\ub3c4 \ub2e4\ub978 \ud504\ub85c\uc138\uc2a4\uac00 \uadf8 \ud30c\uc77c\uc744 \ubd99\ub4e4\uace0 \uc788\ub2e4\uba74\uc11c&#8230;<br \/>\n        <br \/>\n        \uc18c\uc2a4 \ucf54\ub4dc<br \/>\n        <\/p>\n<div class=\"txc-textbox\" style=\"border: 1px solid rgb(254, 254, 184); padding: 10px; background-color: rgb(254, 254, 184);\">\n         &#8216;\uc774 \ucf54\ub4dc\ub294 snowall\uc774 \uc9c1\uc811 \uc791\uc131\ud55c \ucf54\ub4dc\uc774\ub2e4.<br \/>\n         <br \/>\n         &#8216;\uc774 \ucf54\ub4dc\ub294 Public Domain License\ub97c \uc801\uc6a9\ubc1b\ub294\ub2e4.<br \/>\n         <br \/>\n         Private Sub saveConfig()<br \/>\n         <br \/>\n         Dim j As Integer<br \/>\n         <br \/>\n         Dim i As Integer<br \/>\n         <br \/>\n         Dim tmp As System.IO.FileStream<br \/>\n         <br \/>\n         If Not (System.IO.File.Exists(&#8220;C:\\TOFconfig.txt&#8221;)) Then<br \/>\n         <br \/>\n         tmp = System.IO.File.Create(&#8220;C:\\TOFconfig.txt&#8221;)<br \/>\n         <br \/>\n         tmp.Close()<br \/>\n         <br \/>\n         tmp.Dispose()<\/p>\n<p>         End If<br \/>\n         <br \/>\n         MsgBox(System.IO.File.ReadAllLines(&#8220;C:\\TOFconfig.txt&#8221;).Length)<\/p>\n<p>         Dim labels(0) As String<br \/>\n         <br \/>\n         If System.IO.File.ReadAllLines(&#8220;C:\\TOFconfig.txt&#8221;).Length Then<br \/>\n         <br \/>\n         ReDim Preserve labels(System.IO.File.ReadAllLines(&#8220;C:\\TOFconfig.txt&#8221;).Length)<br \/>\n         <br \/>\n         For i = 0 To labels.Length &#8211; 1<br \/>\n         <br \/>\n         labels(i) = System.IO.File.ReadAllLines(&#8220;C:\\TOFconfig.txt&#8221;)(i)<br \/>\n         <br \/>\n         Next<br \/>\n         <br \/>\n         End If<\/p>\n<p>         Dim flag As Boolean = False<br \/>\n         <br \/>\n         MsgBox(labels(labels.Length &#8211; 1))<br \/>\n         <br \/>\n         For j = 0 To frmMainWindow.numberOfData &#8211; 1<br \/>\n         <br \/>\n         For i = 0 To labels.Length &#8211; 1<br \/>\n         <br \/>\n         If Not (labels(i) Is Nothing) Then<br \/>\n         <br \/>\n         If labels(i).StartsWith(frmMainWindow.clsSignalData(j).label) Then<br \/>\n         <br \/>\n         labels(i) = frmMainWindow.clsSignalData(j).label &#038; frmMainWindow.clsSignalData(j).intChannel<br \/>\n         <br \/>\n         flag = True<br \/>\n         <br \/>\n         End If<br \/>\n         <br \/>\n         End If<br \/>\n         <br \/>\n         Next<br \/>\n         <br \/>\n         If Not (flag) Then<br \/>\n         <br \/>\n         ReDim Preserve labels(labels.Length)<br \/>\n         <br \/>\n         labels(labels.Length &#8211; 1) = frmMainWindow.clsSignalData(j).label &#038; frmMainWindow.clsSignalData(j).intChannel<br \/>\n         <br \/>\n         End If<br \/>\n         <br \/>\n         flag = False<br \/>\n         <br \/>\n         Next<\/p>\n<p><span style=\"font-weight: bold; background-color: rgb(92, 127, 176); color: rgb(255, 255, 190);\"><br \/>\n          Dim objfilew As New System.IO.StreamWriter(&#8220;C:\\TOFconfig.txt&#8221;)<br \/>\n         <\/span><br \/>\n<br \/>\n         For i = 0 To labels.Length &#8211; 1<br \/>\n         <br \/>\n         objfilew.WriteLine(labels(i))<br \/>\n         <br \/>\n         Next<br \/>\n         <br \/>\n         objfilew.Close()<br \/>\n         <br \/>\n         objfilew.Dispose()<br \/>\n         <br \/>\n         End Sub<br \/>\n         \n<\/div>\n<p>\n        \uc704\uc5d0\uc11c \ud30c\ub797\uac8c \uce60\ud574\ub454 \ubd80\ubd84\uc774 \uc624\ub958\uc784.<\/p>\n<p><span style=\"text-decoration: line-through;\"><br \/>\n         \ud574\uacb0\ub41c\uc904 \uc54c\uc558\ub294\ub370 \uc544\uc9c1 \ud574\uacb0\uc774 \uc548\ub410\ub2e4. \uc5b4\ub514\uc758 \ubb34\uc5c7\uc774 \ubb38\uc81c\uc77c\uae4c. -_-;<br \/>\n        <\/span><\/p>\n<p>        \ud574\uacb0 \ubc29\ubc95<br \/>\n        <br \/>\n<span style=\"text-decoration: line-through;\"><br \/>\n         C:\\\ub97c E:\\\ub85c \ubc14\uafb8\uc5c8\uc74c<br \/>\n        <\/span><br \/>\n<br \/>\n        Writeline\uc744 WriteAllLine \uc73c\ub85c \ubc14\uafb8\uc5c8\uc74c<\/p>\n<p>        \uc6d0\uc778<br \/>\n        <br \/>\n<span style=\"text-decoration: line-through;\"><br \/>\n         \uc708\ub3c4 Vista\uc5d0\uc11c C:\\\ub294 \ubcf4\uc548\uc0c1 \uc811\uadfc\uc744 \ud5c8\ub77d\ud558\uc9c0 \uc54a\ub294\uace0\ub85c, \uc774\ub798\uc800\ub798 \uad34\ub85c\uc6b4 \uc77c\uc774 \ubc1c\uc0dd\ud568.<br \/>\n        <\/span><br \/>\n<br \/>\n        \ubaa8\ub984. \ub3c4\ub300\uccb4&#8230;<\/p>\n<p>        \uacb0\ub860<br \/>\n        <br \/>\n<span style=\"text-decoration: line-through;\"><br \/>\n         \uc708\ub3c4 Vista\uac00 \uc4f0\ub808\uae30.<br \/>\n        <\/span><br \/>\n<br \/>\n        \uc5b4\uca0c\ub4e0 \uc708\ub3c4 Vista\ub294 \uc4f0\ub808\uae30.<\/p>\n<p>        \uc7a0\uc7ac\uc801 \ubb38\uc81c\uc810<br \/>\n        <br \/>\n<span style=\"text-decoration: line-through;\"><br \/>\n         E:\\\uac00 \uc5c6\ub294 \ucef4\ud4e8\ud130\uc5d0\uc11c \uc791\ub3d9\uc2dc\ud0ac \ub54c 100% \ud655\ub960\ub85c \uc624\ub958 \ubc1c\uc0dd.<br \/>\n        <\/span><br \/>\n<br style=\"text-decoration: line-through;\"><br \/>\n<span style=\"text-decoration: line-through;\"><br \/>\n          \uc774 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\ub3d9\uc2dc\ud0ac \ucef4\ud4e8\ud130\ub294 \uc708\ub3c4 XP\uac00 \uc124\uce58\ub418\uc5b4 \uc788\uc73c\ubbc0\ub85c C:\\\ub85c \ud558\ub354\ub77c\ub3c4 \ubb38\uc81c\uac00 \uc5c6\uc744 \uac83\uc784.<br \/>\n         <\/span><br \/>\n<br style=\"text-decoration: line-through;\"><br \/>\n<span style=\"text-decoration: line-through;\"><br \/>\n           \uac1c\ubc1c\uc740 E:\\\ub85c \ud574\ub193\uace0 \ubc30\ud3ec\ub294 C:\\\ub85c \ud574\uc57c \ud558\ub294 \ub51c\ub808\ub9c8 \uc0c1\ud669.<br \/>\n          <\/span><br \/>\n<br style=\"text-decoration: line-through;\"><br \/>\n           \uc7a0\uc7ac\uc801\uc774\ub77c\uc11c \ubaa8\ub984.<\/p>\n<p>           \ub514\ubc84\uae45\ud558\ub294\ub370 \uac78\ub9b0 \uc2dc\uac04<br \/>\n           <br \/>\n           2 \uc5c5\ubb34\uc77c + \uc57c\uadfc 8\uc2dc\uac04<\/p>\n<p>           \uc7a0\uc7ac\uc801 \uacb0\ub860<br \/>\n           <br \/>\n           \ube4c\uc5b4\uba39\uc744.<br \/>\n           <\/p>\n<div style=\"width:100%;margin-top:30px;clear:both;height:30px\">\n<div style=\"width:31px;float:left;\">\n<a href=\"\/toolbar\/popup\/abuseReport\/?entryId=1427\" onclick=\"window.open(this.href, 'tistoryThisBlogPopup', 'width=550, height=510, toolbar=no, menubar=no, status=no, scrollbars=no'); return false;\"><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\uc2e0\uace0\" src=\"https:\/\/i0.wp.com\/t1.daumcdn.net\/tistory_admin\/static\/ico\/ico_spam_report.png\" style=\"border:0\"\/><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p><\/br><br \/>\n<\/br><br \/>\n<\/br>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc0bd\uc9c8 \uae30\ub85d. \ub0b4\uac00 \uac16\uace0 \uc788\ub294 \uac83 labels() : \uba87\uac00\uc9c0 \uc774\ub984\uc774 \ub4e4\uc5b4\uc788\ub294 \ubc30\uc5f4 config.txt : labels()\uac00 \uc800\uc7a5\ub418\ub294 \ud30c\uc77c \uc6d0\ud558\ub294 \uac83 config.txt\uc5d0 labels()\uc758 \ub0b4\uc6a9\uc744 \uc4f0\uace0 \uc2f6\uc740\ub370, \uc774\ubbf8 \uc788\ub294 \ub0b4\uc6a9\uc774\ub77c\uba74 \uadf8\ub0e5 \ub194\ub450\uace0 \uc5c6\uc73c\uba74 \ub05d\uc5d0\ub2e4 \ucd94\uac00\ud55c\ub2e4 \ud604\uc7ac \uad6c\ud604\ub41c \uc0c1\ud0dc readline(config.txt)\uc73c\ub85c \ubd88\ub7ec\uc624\uace0 \uc801\ub2f9\ud55c \ube44\uad50 \uad6c\ubb38\uc73c\ub85c \ucc3e\uc544\ubcf8 \ud6c4 \uc5c6\ub294 \uc560\ub4e4\ub9cc \uace8\ub77c\uc11c writeline(config.txt)\uc73c\ub85c \uc800\uc7a5 \uadf8\ub7f0\ub370 \uc624\ub958 \ubc1c\uc0dd. IOexception \uc5d0\ub7ec. \ubd84\uba85\ud788 readline \ud6c4\uc5d0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-8611","post","type-post","status-publish","format-standard","hentry","category-12"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8o6gA-2eT","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/8611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8611"}],"version-history":[{"count":0,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/8611\/revisions"}],"wp:attachment":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8611"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}