From: "Premjeet Singh H." Date: 2011-07-30T19:51:52+09:00 Subject: How to read contents of a Memory Mapped File created in ruby through some other app. like .Net? We are creating a Memory Mapped file in ruby using win32-mmap gem. The code used for creating the file is given below: require 'win32/mmap' include Win32 mmap = MMap.new(:name => 'myFile', :size => 2000) mmap.foo = 'hello' mmap.bar = 27 sleep 100 mmap.close Now, when we try to read this file in our other application which is in .Net we get this string {"foo"hello"bari There were some special symbols also in this string which can't be posted here so the sample file is attached as an attachment. So how can we read its contents without the special symbols and without these foo and bar variables in the other application? Also is there any way we can write the string directly into the Memory Mapped file without other variables like here we have used .foo and .bar? Attachments: http://www.ruby-forum.com/attachment/6466/mmap.test -- Posted via http://www.ruby-forum.com/.