tags:

views:

48

answers:

2

Hello iam trying to write information about customer from textboxes to a file.txt. when iam clicking save button, stream is opened, then i used method writeline(txtboxevalues) but no information are written to the txt file any help in that?? THanks..

+5  A: 

You need to close your file/stream at the end of your manipulations to commit the changes.

Soufiane Hassou
A: 

Try using Flush() to flush the buffered data to the file.

Silv3rSurf