jeudi 5 novembre 2015

Attach hidden options to a file in C#

So I want to attach some secret info to my files in a program, and VS2013 throws an exception stating:

An unhandled exception of type 'System.NotSupportedException' occurred in mscorlib.dll

Additional information: The specified path format is not supported.

For the lines:

string metafile = filename + ":key";
StreamWriter metadata = new StreamWriter(metafile);

How can I solve this? I need it, because this way I can check it with console with the command: "notepad file.txt:key".

Aucun commentaire:

Enregistrer un commentaire