Python -Create, write and read file -VS Code on Ubuntu No.35
How to create, write and read a file using Python in Visual Studio Code on Ubuntu is shown in this blog. ▼1. Creating, write and read a file using Python open() function is used to create a file or edit a file. there are 2 elementary parameters of open() Python function for specifying a file name and the mode of a file operation. There are some modes as below. Mode Description ‘r’ open for reading (default) ‘w’ open for writing, truncating the file first ‘x’ open for exclusive creation, failing if the file already exists ‘a’ open for writing, appending to the end of file if it exists ‘b’ binary mode ‘t’ text … Continue reading “Python -Create, write and read file -VS Code on Ubuntu No.35”