Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C# (http://www.programmingforums.org/forum16.html)
-   -   C# Under Mono - Gnome Bindings (http://www.programmingforums.org/showthread.php?t=5422)

qub333 Aug 16th, 2005 10:23 AM

C# Under Mono - Gnome Bindings
 
I would like to start by saying this is my first forray into C#, so I apologize for any terminology misused.

I am looking for a way to read the contents of different compressed files under C# (to be integrated into the Beagle Desktop Search, should I figure this out) and while there is plenty of solid documentation on integrating gtk#/glade with C# to make simple interfaces, the mono runtime seems to be lacking any way to compress/decompress a stream without doing it manualy.

While reading through the Mono Documentation, I found a Gnome.Vfs class that extendts one of System.IO's classes. I believe Gnome's VFS can read some compressed formats. Does anyone have any experiance with this? Moreover could someone loan some simple POC type code? I am not solid on C# syntax yet, so I might just be messing things up that way.

:

using System;
using Gnome.Vfs;
class MainClass
{
        private VfsStream temp; //attempt to declare a VfsStream
        public static void Main(string[] args)
        {

                temp = new VfsStream("/home/qub333/samplecomp.zip",
                        new FileMode(open)); //attempt to create a VfsStream

                Console.WriteLine("Hello World!"); // So far, the only part that works
        }
}


Pizentios Aug 16th, 2005 10:42 AM

fixed code tags


All times are GMT -5. The time now is 8:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC