Question: Hi I have this function:

```
changeTarea: function() {

    var self = this;
    $("#select_tarea_id").change(function() {
        var id_tarea = $("#select_tarea_id").val();

        $.each(self.objTareasFlot, function(index,value) {

            for(var i = 0; i < value.length; i++) {

                if(value[i].Id == id_tarea) {

                    self.objTareasFlotFinal['id']=value[i].Id;
                    self.objTareasFlotFinal['id_pro']=value[i].Id_proyecto;
                    self.objTareasFlotFinal['tarea']=value[i].nombre_tarea;
                    self.objTareasFlotFinal['porcentaje']=value[i].porcentaje;

                    console.info(self.objTareasFlotFinal);
                }
            }
       });

    });
}

```

And the function print : 

[![enter image description here](https://i.stack.imgur.com/hQ3aV.jpg)](https://i.stack.imgur.com/hQ3aV.jpg)

But I need the 3 results in one array

for example :

[![enter image description here](https://i.stack.imgur.com/ym2rj.jpg)](https://i.stack.imgur.com/ym2rj.jpg)

How can I do that with that function? Sorry for my english I did try to explain of the better way

Answer: 
With proper implementation, roll your own code™ give you flexibility over the shell copy. For example, it's easier to abort operation, and provide progress to user.

By the way, when you see Windows copying file fast - it's just perspective. File explorer queue the copy or otherwise do it in background. It takes about the same time with, e.g. [CopyFileEx](https://msdn.microsoft.com/en-us/library/windows/desktop/aa363852(v=vs.85).aspx) or [sendfile](http://linux.die.net/man/2/sendfile) until the copy finish and the file is usable.
If it were me I would avoid making system calls and do something like so:

```
    int main()
    {
         std::ifstream  src("from.ogv", std::ios::binary);
         std::ofstream  dst("to.ogv",   std::ios::binary);
         dst << src.rdbuf();
    }

```