Ask Your Question

fh's profile - activity

2018-03-08 16:06:46 +0200 commented answer Can we read local file from Sagecell

I tried it on https://sagecell.sagemath.org/ and a reasonable output was produced for the file "/etc/hosts".

2018-03-05 12:57:02 +0200 answered a question Can we read local file from Sagecell

Yes, you can:

with open("/path/filename", 'r') as fin:
    print fin.read()