Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit e1a6901

Browse files
committed
indentation
1 parent 85b393a commit e1a6901

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: Session3.md

+3
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ ios.close
277277
Di Ruby, kita bisa memanipulasi file dan folder dengan menggunakan *method-method* dari kelas Dir dan File.
278278

279279
Buat dan hapus folder:
280+
280281
```ruby
281282
Dir.mkdir("/tmp/ruby_basic",777)
282283
dir = Dir.pwd
@@ -285,13 +286,15 @@ Dir.rmdir("/tmp/ruby_basic")
285286
```
286287

287288
Buat dan hapus file:
289+
288290
```ruby
289291
file = File.new( "aaaa.txt", "w" )
290292
File.rename( "aaaa.txt", "bbbb.txt" )
291293
File.delete( "bbbb.txt" )
292294
```
293295

294296
Pemrosesan file per baris pada Ruby:
297+
295298
```ruby
296299
file = File.open( "Readme.md" ) if File::exists?( "Readme.md" )
297300

0 commit comments

Comments
 (0)