Link to a file

Is it possible to create an object that simply holds the file (by reference or by memory). Then, if you want to move it via FTP or another way, you can use this file link.

private [some object type] CreateFileObject() {
    [some object type] FileObj = new [some object type];
    return FileObj;
}
+4
source share
1 answer

At least three possibilities.

File name string. You have this and you can use it to work with the file.

Internal file descriptor IntPtr. I doubt it is as useful as it seems that only the native API works at the descriptor level.

Stream. , . , ( , zip ..). , , .

+3

All Articles