ew Projedt Build Debug TeamRools iest TestAnalyzeWindowll Help Debug Any CPU For
ID: 3740474 • Letter: E
Question
ew Projedt Build Debug TeamRools iest TestAnalyzeWindowll Help Debug Any CPU Forml.vb" ?? ?mes.txt rm crm btnAdd names Public-class:Fond in newName Prtvate sub tnadd click(sender As object! e As ventAres) Handles btnadd.Clie String etxtName. Text rsFoundInThe iTe(newName) Then MessageBox Show"New new is already existed in the file ERROR) Retura If End If EinEseAssystem.lo.streamReader:- Din Sw AS System. IO Streamtir iter Din line As String Do Uncil sr. EndofStream ? System. IO.File openText("Names txt") System.IO.File CreateText(temp. txt) linesr.ReadLine() ifline. :? newName: Then - sw.Writetine(newName) : is 1nsert-True. End If End If Sw riteline(ine Loop ErrorsoWarnings 0 of 2 Messages BuildIntelliSense escription Project Fil For Foi temp ir nok tectar tmay be inaccessibie due to its protection levet Lab 9 Fole of namer ote names pa ckaExplanation / Answer
In the 11th line of code you have written
System.IO.File.CreateText(temp.txt)
You should enclose it with " "
It should be
System.IO.File.CreateText("temp.txt")
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.