Views 1505 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
안녕하세요~ 전역을 앞에 두고 다시 RPG만들기에 불붙은 녹색주머니입니다+_+

 


---------------------------------------------------------------------------------------------------------------------


open(file[, mode]) {|io| ... }

Opens file and returns a File object. mode specifies one of the following strings. When mode is omitted, the default is "r".



  • "r": Opens file in read mode.

  • "w": Opens file in write mode. If a file already exists when file is opened, the previous file's contents will be deleted.

  • "a": Opens file in write mode. Output will always be appended to the end of the file.

Using "+" opens the file in read-write mode (RDWR):




  • "r+": Sets the read-write position to the beginning of the file.

  • "w+": The same as "r+", but if a file already exists when file is opened, the previous file's contents will be deleted.

  • "a+": The same as "r+", but if a file already exists when file is opened, the read-write position will be set to the end of the file.

The "b" flag can also be added to any of these (in the format "r+b") to open the file in binary mode.


--------------------------------------------------------------------------------------------------------------------


 


대충 r은 읽기모드. w는 쓰기모드라는 건 알겠는데..


 


Q1.  w와 a의 차이점.


 


Q2. +의 기능은?  안 붙이면 파일의 첫단부터 읽는거고 붙이면 마지막단부터읽는게 맞는지...


 


Q3. b는 ? 제한모드라는데 전혀 감을 못잡겠네요.

?

List of Articles
No. Subject Author Date Views
8827 저번 글들과, 이전 글에 대해 묻고 싶습니다. idtptkd 2005.05.17 1469
8826 이전 작가들은 어떻게 되는 건가요? 아렉스 2005.05.17 1262
8825 이전 작가들은 어떻게 되는 건가요? 영원전설 2005.05.18 1317
8824 프루티룹스 질문... 신승일 2005.05.18 1650
8823 창작글만 있는데 감상문 같은 건 쓸수 없나요? 다르칸 2005.05.18 1159
8822 창작글만 있는데 감상문 같은 건 쓸수 없나요? 아렉스 2005.05.18 1199
8821 창작글만 있는데 감상문 같은 건 쓸수 없나요? 천무 2005.05.18 967
8820 창작글만 있는데 감상문 같은 건 쓸수 없나요? 『水』신교 2005.05.18 983
8819 rpg만들기 2000에서 신규프로젝트가 만들어지지 않아요;; 밀크마스터 2005.05.18 1290
8818 rpg만들기 2000에서 신규프로젝트가 만들어지지 않아요;; 나랑놀자 2005.05.18 1233
8817 rpg만들기 2000에서 신규프로젝트가 만들어지지 않아요;; 셉티찡 2005.05.18 1279
8816 릴레이 소설 말인데요... 외로운갈매기 2005.05.18 782
8815 이전의 창작글 게시판의 글은 어케되나요? 천무 2005.05.18 592
8814 이전의 창작글 게시판의 글은 어케되나요? Sir_아사히 2005.05.19 692
8813 윈도우 98에서는 rpgxp안돌아가요 ? 바람을 가르는 자 2005.05.19 863
8812 윈도우 98에서는 rpgxp안돌아가요 ? 미칼렌 2005.05.19 1043
8811 패치 요청... Norid 2005.05.19 585
8810 rpg만들기 2000에서 신규프로젝트가 만들어지지 않아요;; black-angel 2005.05.19 1262
8809 [RPG XP] 게임 테스트 오류. 살려주세요// Norid 2005.05.19 1055
8808 릴레이소설 사래신장전 완결했는데요.. 적랑 2005.05.20 761
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 442 Next
/ 442


[privacy statements] | [Terms of Use] | [Contact us] | [Sponsorship] | [Indiside History]

Copyright © 1999 - 2016 INdiSide.com/CL3D Co., Ltd. All Rights Reserved.
Owner : Chunmu(Jiseon Lee) | kernys(Wonbae Kim) | Sasinji(Byungkook Kim)