the variable remoteFile is the complete path of the file.
I am running it from a computer and opening it on an edison through an ssp connection, so I can't run it from the same directory.
Do you get the same result if instead of printing ‘pv’ you print just ‘v’ (the long variable)? Have you checked where exactly is the file using ‘ls’ in the command line from the Edison? This is to make sure that the file is actually there.