-1

my program wrote in vb.net. in run time,give me "IO Exception was caught"

enter image description here

please help me.

Sahar Kiyan
  • 67
  • 2
  • 14

1 Answers1

1

Probably the file that you are trying to create with the FileStream already exists. Use FileMode.OpenOrCreate to solve your problem or delete the file first.

FileStream creation.

SysDragon
  • 9,692
  • 15
  • 60
  • 89