Python - Reading & Writing Files

preview_player
Показать описание

📣 Other Social:
Рекомендации по теме
Комментарии
Автор

Dude, I want a read a file and i want to save the same file in different location.When I tried this, I got this error-(IOError: [Errno 2] No such file or directory: 'Armstrong'), though they are in the same location.(Armstrong is the name of the file)Pls...help me ASAP

viralvlogs
Автор

So in python 3.5.2 do you have to put the file name the exact same way it looks in your folders ?

Автор

I dont get the "for f in file. " though. What does "f" stand for? Pleas ELI5

lesagent
Автор

I am trying to read some log files, and I need to read it backwards. While the files don't hit a Mb., I don't need all the information but from the last couple of days or so. 3.5.2 is the version of python I am running, do you know how I would read the last say, 100 lines of those files?

misterbristles
Автор

OhSnap = open("data.txt").readlines() Creates list from text file

retiredshitposter
Автор

Guys how do you create new file with .html extension ? and how do you write in that fille ?

MrMaksuz
Автор

couldnt get mine to work then i decided to put in that " C: " and that fixed my problem

tscsobc
Автор

I don't want obscenity in objects I'm studying so intently. Goodby.

helenemerson
Автор

You were really in great hurry...pls upload next video when you really have time????

Ankurkumar