In VBA, what do the different modes in the Open statement do and how do I use them?
As far as I understand:
- Output: Write to file, overwrite any existing file
- Append: Appends to an existing file
- Input: Read from file (needs to read a file sequentially)
- Random: Read/Write to/from a file (non-sequential, needs fixed data length)
- Binary: For binary files
Two questions here:
- Does it mean all except "Binary" relate only to Unicode files?
- What would be a simple example for "Random" usage including the reading/writing part (trying to get a grasp for the last hour or so)