Ask Your Question

fh's profile - activity

2018-03-08 09:06:46 -0500 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 05:57:02 -0500 answered a question Can we read local file from Sagecell

Yes, you can:

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