From: Sniper Abandon Date: 2009-11-19T16:26:18+09:00 Subject: open a binary file-read bit-change bit-update same file my Aim is i want to encrypt a file i want to open a binary file i want to read the 1-st bit if the bit is "1" then update that position bit to "0" instantly if the bit is "0" then update that position bit to "1" instantly then i have to read 2-nd bit do the same thing like above conversion ....... ....... like i want to do this for all bit of that file --------------------- i know we can read the file into a array then we can do the modification,etc but i want to update on that same file object, and the file size may be more then 1 GB is it possible? any idea and help is very much appreciated -- Posted via http://www.ruby-forum.com/.