load the txt files
IN windows i use the command cat primes.txt not run. How to use the command cat primes?
if i use the method like open the file i.e.
fd=open('primes.txt')
p=fd.read()
print(p)
in case of writting the 3 line just use the cat primes.txt only it's run in ubuntu? not in window?
Python-3.4.3 Loading-Data-From-Files 01-02 min 20-30 sec
Answers:
alternative for cat in window is
%pycat primes.txt
!type primes.txt
%load primes.txt
how to load primes.txt file on windows.
17-07-20, 12:47 p.m.
krisram
similar problem i am also noticing.
even after trying the above mentioned three alternatives, it is not loading
-Rama krishna
Check if the file is present in the current working directory. To check the current working directory type %pwd inside ipython terminal.
25-10-21, 7:17 p.m.
aditya94palaparthy@gmail.com