vb.net - VB interrogating a csv file as a database -
visual basic (2013) refusing work properly, have no way of testing code, , can tell have no clue. trying take information csv file , use vb write part of data in csv separate text file. code far:
imports system.io public class form1 dim infile streamreader = nothing dim outfile streamwriter = nothing dim sfilename string = "c:\etc" dim inputtext string dim filenumber integer dim filename string = "" private sub readwrite() filenumber = freefile() fileopen(filenumber, filename, openmode.output, openaccess.write) outfile = new streamwriter(sfilename) infile = new streamreader(sfilename) dim string() = split(sfilename, ",", , comparemethod.text) inputtext = infile.readtoend() infile.close() textbox2.text() &= "testtt mcgee" & vbcrlf textbox2.text() &= inputtext textbox2.select(0, 0) end sub private sub button1_click(sender object, e eventargs) handles button1.click readwrite() end sub end class it near complete, don't have faintest of next.
Comments
Post a Comment