How to use Files in Python - #FirststepsinPython part 13

Subscribers:
2,490
Published on ● Video Link: https://www.youtube.com/watch?v=s5Xhbn-0At8



Category:
Guide
Duration: 17:52
4 views
1


Today I learned a bit more about Python, and how I can use Files to store information, permanently.
Basically, I can save Variables, Lists or Dictionaries to a actual file, so it can be stored in the Hard Drive/SSD instead of the RAM, so you can create permanent Databanks.

I can create a File very easily:

File = open("Databank.txt", "w")

here I just created a .txt File called Databank, and every time I want to use it, I can use the thing I define it to, which File. the W is for Write, as I am creating a file, and I need to close it if I need to alter it

File.close()

I can also Alter the file ("a") or Read the file ("r"), when altering I keep the information inside, and if I create a file with the same name it will replace the existing file name info.

The course link (it's in Portuguese): https://on.fiap.com.br/local/salavirtual/conteudo-digital.php

If you have any question or suggestion on other topics, feel free to comment down below or ask me in Facebook or Instagram!

Visit my Facebook Page in: http://fb.com/teteusbionicoficial
Visit my Instagram: https://www.instagram.com/teteusbionic/
Visit my Website: http://www.teteusbionic.com.br




Other Videos By Teteus Bionic (Teteus Bionic)


2021-06-22Como usar uma API em Python - #AprendendoPython 18
2021-06-22How to use an API in Python - #LearningPython 18
2021-06-21How to Read .Json files in Python - #LearningPython 17
2021-06-21Como Ler Arquivos .Json em Python - #AprendendoPython 17
2021-06-17Como Ler Databases em Python - #AprendendoPython 16
2021-06-17How to Read a Database in Python - #LearningPython 16
2021-06-16How to Read Variable in Python - #LearningPython 15
2021-06-16Como Ler Variables em Python - #AprendendoPython 15
2021-06-11Como armazenar informações em Python - #AprendendoPython 14
2021-06-11How to Store Information in Python - #LearningPython 14
2021-06-10How to use Files in Python - #FirststepsinPython part 13
2021-06-10Como usar Arquivos em Python - #PrimeirospassoscomPythonparte 13
2021-06-08Como adicionar info em Dicionários em Python - #Primeiros passos com Python parte 12
2021-06-08How to add info to Dictionaries in Python - #First steps in Python part 12
2021-06-03How to use Dictionaries to Store Information in Python - #First steps in Python part 11
2021-06-03Como usar Dicionários para Armazenar Informação em Python - #Primeiros passos com Python parte 11
2021-05-27Como usar Dicionários em Python - #Primeiros passos com Python parte 10
2021-05-27How to use Dictionaries in Python - #First steps in Python part 10
2021-05-26The Difference between Lists and Definitions - #First steps in Python part 9
2021-05-26A Diferença entre Listas e Definições - #Primeiros passos com Python parte 9
2021-05-21How to Define and Modulated a Code in Python - #First steps in Python part 8



Tags:
Programação de Jogos
Curso de Programação de Jogos
Palestra Programação de Jogos
Oficina Programação de Jogos
Scratch
Fazer Jogo
Criar um Jogo
Como fazer um jogo
Fazer um jogo sozinho