Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Search files by extension

Python: Search files by extension
{filelink=16771}

import fnmatch
import os
# find text files in current directory
for file in os.listdir("."):
    if fnmatch.fnmatch(file, "*.txt"):
        print file

Users who found this page were searching for:

  • strikethrough java
  • examples to underline the font in pdf using java
  • python search file with extension
  • program to write factorial in perl using for loop
  • searching for file extension python
  • input 5 numbers prints out odd numbers java
  • factorial program using perl
  • underline font in java
  • program to write factorial in perl
  • factorial of a number using recursion in perl

No comments yet.

Leave a Comment