[color=#009000]**// Text file path[/color]
SourceFile$ = [color=#800000]'<Embedded>\Source.txt'[/color]
[color=#009000]**// Here we retrieve number of lines of the source file[/color]
NumOfLines = [color=#000090][b]NOL[/b][/color](SourceFile$)
Sum = [color=#ff0000]0[/color]
[color=#009000]**// its the Delimiter (Seperator) for Seperating items of array[/color]
Delimiter$ = [color=#800000]','[/color]
[color=#0000FF]For[/color] i=[color=#ff0000]1[/color] [color=#0000FF]To[/color] NumOfLines
[color=#009000]**// Get ith line of the text file[/color]
Array$ = [color=#000090][b]StrFromFile[/b][/color](SourceFile$,i,[color=#ff0000]1[/color]) + Delimiter$
[color=#009000]**// this code will get second item of the array and then converts it to the numerical format[/color]
Item = [color=#000090][b]VAL[/b][/color]([color=#000090][b]GetArrayItem[/b][/color](Array$,Delimiter$,[color=#ff0000]2[/color]))
Sum = Sum + Item
[color=#0000FF]Next[/color] i
[color=#000090][b]Message[/b][/color]("","Sum")