Importing data in python - Reading Plain Text File

Importing data in python - Reading Plain Text File

MyStudy

6 лет назад

63,735 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Rafy-Ivan Morales
Rafy-Ivan Morales - 30.12.2021 03:26

I’m a new student and need help to do this project:
I have a port scanner script it works properly, it works in Pycharm using python3.9.
I have to make a file and I did make call (Example.txt)
On this file, I have to do this:
3. If the Ports is open, it should create a file and add an entry for port number
4. In case of any exception for instance “host is not available”, “host name could not be resolved” or
due to any other error, you need to write that exception into the same file.
I’m not asking for you to do the project for me, I'm only asking ware I need to work or used in my script to accomplish this because it is my first time doing this and working with python too, and I have been struggling with this part one very bad. I can even send you the code, so you can look and only tell me what I’m doing bad, is not working.

Ответить
Walkingdeadman1991
Walkingdeadman1991 - 02.12.2021 23:44

Great video, thanks!!

Ответить
1000AFGHAN1
1000AFGHAN1 - 27.07.2020 18:39

What about you fucking check your video before uploading it!

Ответить
abinash nayak
abinash nayak - 09.04.2020 15:45

hi, i want to use content in a text file as input for my main script. can you please point to me an example code for the same. For example in the text file A= 10, B=15 and in my main script i need to use 10 & 15 as inputs for my script.

Ответить
Aamer H.
Aamer H. - 25.02.2020 00:58

this as is boring

Ответить
Chris Martin
Chris Martin - 20.02.2020 21:29

getting encoding error when I use file = open ('text.txt', r)

Ответить
Vinod Kumar
Vinod Kumar - 24.05.2019 09:20

sir how to extract columns from given text file in python ?

Ответить
Ashish Singh
Ashish Singh - 16.05.2019 13:38

can i use notepad for txt file if i am using windows

Ответить
hiwot wonago
hiwot wonago - 03.04.2019 16:16

what if the file has other language script. because it says unreadable file

Ответить
9lex
9lex - 02.01.2019 15:47

less taking more showing

Ответить
pcproff
pcproff - 21.11.2018 16:34

high pitch noise?

Ответить
hello78666
hello78666 - 24.05.2018 12:53

Great! 69

Ответить