: Directory : File PYTHON TUTORIALS
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
PYTHON TUTORIALS
»
File
»
Directory
»
221.1 .
create a test file with two lines and verify that the file has been created by listing the directory again afterward
Hits: 939
221.2 .
create a subdirectory in our temporary directory
Hits: 1057
221.3 .
verify that '/tmp' is a valid directory and change to that temporary directory, call the getcwd() method
Hits: 849
PYTHON TUTORIALS
File
»
Directory
Introduction
Seek
Binary File
Tell
Text file
Write
Directory
Writelines
Remove directory
Close
Getline
Remove file
Loop through
Rename file
Member in
Path
Open
Tar file
Read
To list
Readline
Unicode
Readlines
Zip file
Redirect
Buildin Function
Buildin Module
CGI Web
Class
Collections
Data Type
Database
Dictionary
File
Function
Introduction
List
Network
Operator
Regular Expressions
Statement
String
Thread
Tkinker
Tuple
Windows
WxPython
XML