I'd like to export /path/to/api.trace
(the result of a GPU trace, which is in some weird format) to the Wolfram cloud (so that someone else can download it and inspect on their machine). I've tried importing it as
Import[File["/path/to/api.trace"]]
Import[File["/path/to/api.trace"], "Text"]
but both fail to work. I either get
ToExpression::sntx:
Invalid syntax in or before "
Import::infer: Cannot infer format of file api.trace.".
or
$Failed
Ultimately my goal is to feed it to
CopyFile[apiTrace, CloudObject["api.trace"]] (* Will this be downloadable? *)
How to get around this?
File
part and simply use the path inImport
? It should not though. How big is the file? Is is text or binary? Anyway, perhaps if the only purpose is to share with someone else, then you could use a free account on e.g. DropBox or some similar service? $\endgroup$3144639
bytes large in my console. I guess it's in binary? I'd like to use Wolfram if I can because it's so much easier to use its REPL for one-off jobs like this (making throwaway links to files for temporary sharing, etc). $\endgroup$Import
, but I get errors when trying to use it inCopyFile
. $\endgroup$