Skip to content

Commit f4212ad

Browse files
authored
Create README.md
1 parent ca34df8 commit f4212ad

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
![License](https://img.shields.io/badge/License-MIT-green.svg)
2+
3+
4+
5+
6+
7+
**A simple php file helper**
8+
9+
10+
11+
==========================================
12+
13+
14+
**search by a keyword in file**
15+
16+
17+
18+
19+
```
20+
$fileHandler = new FileHandler();
21+
22+
$fileHandler->open(filename: 'movie.csv',mode:'r')->searchInCsvFile(keyword: 'Twilight');
23+
24+
```
25+
26+
**Write multiple file simultaneously:**
27+
28+
```
29+
$fileHandler = new FileHandler();
30+
31+
$fileHandler->open('file.txt');
32+
33+
$fileHandler->open('php://stdout');
34+
35+
fileHandler->write(data: "hello world");
36+
37+
$fileHandler->close();
38+
39+
```

0 commit comments

Comments
 (0)