You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple Python script that chooses a random line from a file and prints it each time it runs. Perfect for daily quotes, random tasks, motivational messages, or any line-based content!
4
+
5
+
## Features
6
+
7
+
-**Random Line Selection**: Picks a random line from any text file
8
+
-**Multiple Usage Modes**: Command line arguments or interactive input
9
+
-**Sample Content**: Auto-creates sample quotes file if none provided
10
+
-**Error Handling**: Graceful handling of missing files and permissions
11
+
-**File Statistics**: Shows total number of lines in the file
12
+
-**Clean Output**: Beautiful formatted display with emojis
13
+
14
+
## Usage
15
+
16
+
### Method 1: Interactive Mode
17
+
```bash
18
+
python random_file_picker.py
19
+
```
20
+
The script will prompt you for a file path, or create a sample quotes file if none provided.
0 commit comments