Microsoft Small Basic

Program Listing: CJJ955
TextWindow.Write("Hello,")
start:
TextWindow.Write("What word would you like to look up: ")
word = TextWindow.Read()
display = Dictionary.GetDefinition(word)
TextWindow.WriteLine("The definition of the word "+word+" is:")
TextWindow.Write(display)
TextWindow.Write("Would you like to save the definition to C:\"+word+".txt ? (y/n) ")
f = TextWindow.Read()
If (Text.StartsWith(Text.ConvertToLowerCase(f),"y")) Then
' The following line could be harmful and has been automatically commented.
' File.InsertLine("C:\"word+" definition.txt",1,(display))
EndIf
TextWindow.Write("Would you like to lookup another word? (y/n) ")
e = TextWindow.Read()
If (Text.StartsWith(Text.ConvertToLowerCase(e),"y")) Then
Goto start
EndIf
TextWindow.WriteLine("Goodbye")