Ask coding questions

← Back to all posts
Batukeshwar (0)

if i want to you a file in the code and the file is stored on the desktop then what to do.

heyitsmarcus (287)

Filepaths can be relative in most languages. It looks like you're using Python, so if you wanted to get a file to use, you just need to upload it to your REPL and then reference it with a ./filename.extension where filename.extension is your file with its extension i.e. if I need work.txt you can reference ./work.txt in your code to grab the file.

Batukeshwar (0)

sorrry in place of you there is use