Assuming you're working in VisualStudio and not in Java, I would do something like the following:
1. Create a FileStream