Working with files: Difference between revisions

From Computer Science Wiki
No edit summary
No edit summary
Line 1: Line 1:
[[file:Hierarchical-structure.png|right|frame|Object-Oriented Programming<ref>http://www.flaticon.com/</ref>]]
[[file:Hierarchical-structure.png|right|frame|Object-Oriented Programming<ref>http://www.flaticon.com/</ref>]]


There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use. <ref>https://docs.python.org/3/tutorial/inputoutput.html</ref>
We use files to store data. For example let us imagine you have a program that functions as a store inventory system. The program allows you to create, update, read and delete items from a store inventory. If you have no way of '''saving''' changes you've made, when you re-start your program, you will need to make all those changes again.  
 
File [[Inputs and outputs|I/O]]
 
 


== File input / output ==  
== File input / output ==  

Revision as of 11:32, 5 January 2020

Object-Oriented Programming[1]

We use files to store data. For example let us imagine you have a program that functions as a store inventory system. The program allows you to create, update, read and delete items from a store inventory. If you have no way of saving changes you've made, when you re-start your program, you will need to make all those changes again.

File I/O


File input / output

File formats

XML

JSON

Plain Text

Helpful Links

References