Sirisha E
Title
Question
cat command not working. how to load text file. give file name including path as an example.
Python-3.4.3 Loading-Data-From-Files 00-01 min 0-10 sec
Answers:
for loading a file you can use %load command
%load file1.txt
In windows there is no cat command. Use !type filename.txt.
You can use loadtxt python function to load the data from a file.
loadtxt('C:\\\\documents\\\\myfile.txt')
Login to add comment