CPallini's solution suits your needs most (although the other comments are valid too).
It's kinda hard to answer in detail without more info about the data you want to store in the file, but I'll try to provide a few pointers to help.
(Sorry about the awful formatting, I'm still learning what works here)
1. Decide if you can leverage an existing format.
XML or text-based formats are the obvious candidates - in both cases support is
good from the standard libraries.
If XML, check the XML namespaces on MSDN to see how to load an XML file.
If text, simply open the file and read into a string.
Otherwise, you'll have to design a binary file format.
2. Examine the structure of the data you want to store. Look at the structure of
the data and design a file format.
If XML, write an example of the file using a text editor. Ideally create an XML
Schema describing the file - but if you're new to XML that can be a tall task.
For both text and binary files, think of the structure of the data. Most files
have a header section that indicates (by offset) where the remaining data in the
file is.
Commonly other parts of the file are record-like (the same type of item repeated
a number of times) or free-form (like free-form text) in which case you may need
to decide how to terminate the section, or store the length up front.
3. To read and write the file, you'll need to use the .NET stream input/output
facilities. MSDN has some useful information on this under Common I/O tasks,
linked below.
The Wikipedia entry of file formats (
Wiki[
^]) may offer some useful pointers).
MSDN Common I/O Tasks[
^]