Skip to content

Commit b69d48b

Browse files
committed
update readme
Signed-off-by: rahul <[email protected]>
1 parent 344e70c commit b69d48b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ $data[0] = [
7979
8080
```
8181

82+
**converting file to a json format**
83+
84+
```
85+
$fileHandler = new FileHandler();
86+
$this->fileHandler->open(filename: 'movie.csv')->toJson();
87+
88+
//output
89+
[{"Film":"Zack and Miri Make a Porno","Genre":"Romance","Lead Studio":"The Weinstein Company","Audience score %":"70","Profitability":"1.747541667","Rotten Tomatoes %":"64","Worldwide Gross":"$41.94 ","Year":"2008"},{"Film":"Youth in Revolt","Genre":"Comedy","Lead Studio":"The Weinstein Company","Audience score %":"52","Profitability":"1.09","Rotten Tomatoes %":"68","Worldwide Gross":"$19.62 ","Year":"2010"},{"Film":"Twilight","Genre":"Romance","Lead Studio":"Independent","Audience score %":"68","Profitability":"6.383363636","Rotten Tomatoes %":"26","Worldwide Gross":"$702.17 ","Year":"2011"}]
90+
91+
```
92+
8293
**Encrypt a file**
8394

8495
```

0 commit comments

Comments
 (0)