Search results

  1. M

    Dynamic

    I'm trying to create a file manager interface. I want it so the user can create a new directory and then start uploading files to that directory. Obviously, I need to give the newly created directory write permission before files can be uploaded. How to do this? Thanks much...
  2. M

    TCP Port Routing

    How can I make it so that my program is able to receive TCP streams through a router? Right now, I have to explicitly open a port on my router in order for me to get return messages. I, obviously, want to avoid having everybody do this. With something like MSN messenger, you don't have to do...
  3. M

    byte[] from CryptoStream

    I have this method, with takes in path to a file on the system, encrypts it, and then writes the encrypted file to disk using the file path as a name and ".enc" extension. It works fine, and I am able to decrypt the file later with a different function:public void Encrypt(string fileName) {...
  4. M

    struct serializing into byte[]

    Lets say I have a serialized struct called MyStruct, to write it out in binary form I know that I can do this: FileStream fileStream = new FileStream(@"C:\wow.dat",FileMode.Create); BinaryFormatter binaryFormatter = new BinaryFormatter( ); binaryFormatter.Serialize(fileStream, MyStruct)...
Back
Top