Changing first 2 char of a file with each other

ramtin

Member
Joined
Oct 15, 2003
Messages
6
Does Anyone know how to change 1st 2 char of a file (AVI file) with each other inorder not to be playable by Media player ? ( i want to use this for some kind of AVI lock)?

Thanx
 
Make a StreamReader and read the file to the end with .ReadToEnd and put this into a character array.
Then, switch the first two elements of the string and then write them back to the file with a StreamWriter. :) Hopefully that will work.
 
Back
Top