Would you mind editing your post and putting the source inside code tags? It will make it a lot more legible and folks here will be more likely to look at it.
your code looks fine (from what I can see) I'm wondering if it's a problem with your text file. You say it has 10 2, do you have any extra characters. Also, even though you're instreaming your variables I would still initialize them. Bad practice not to.
Lol and your output is wrong, it says your reading dimensions of 5 rectangles... looks like one =)
the note pad online had these 2 #[10 2]. i thing the problem is in visual basic because isntead i did the multiplication of width and length, i online wrote length and i got a huge negative #.
yes i was suppose to do the area of five triangles since i got that problem im trying to solve just one instead.