vb.net - Saving to text, receiving error message -


i'm trying save contents of listview box following code

dim w io.streamwriter private sub button6_click_1(byval sender system.object, byval e system.eventargs) handles button6.click     dim integer     w = new io.streamwriter("c:\" & "sname" & ".txt")     = 0 listview1.items.count - 1         w.writeline(listview1.items(i))     next     w.close() end sub 

when try , run app showing code saying : access path 'c:\sname.txt' denied.

any appreciated.

under windows vista, 7, 8 root path c: protected uac , accessible in write admin users; must run program admin or use path (e.g. asking or %temp%).


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -