閲覧数 1657 推奨数 0 コメント 0
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷
안녕하세요~ 전역을 앞에 두고 다시 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
番号 タイトル 投稿者 日付 閲覧数
8827 힐다의 학자금퀘스트 스크립트 관련 질문 5 심심치 2014.10.11 2198
8826 흠...오프닝에 관한 질문인데요. 다크아머 2005.05.28 1014
8825 흠...오프닝에 관한 질문인데요. Survivor-c 2005.05.28 1207
8824 흠.. 케릭터가 안움직여져요.... 일당백 2005.08.20 717
8823 흠.. 케릭터가 안움직여져요.... 카리스 2005.08.20 640
8822 흠.. 케릭터가 안움직여져요.... ☆무적기사★ 2005.08.21 818
8821 흠.. 맵배치에 관해서.. 1 『덩키동크』 2006.02.20 688
8820 흠.. 맵배치에 관해서.. 아두 2006.02.20 699
8819 흠.. 궁금한거 하나 있는데요.. 1 다크진™ 2005.08.06 781
8818 흠.. rpg2003에 대해서 인데요 꼭좀 알려주시면... 재티s 2005.11.06 1191
8817 흠.. 2k만하다가 xp하려는데.. 1 잘생긴넘 2007.02.14 922
8816 흠,, 뭐가 문제인지좀,, 좌표의 이동에대해,, XLostTimesX 2006.01.10 698
8815 흠 그;;; 조건분기그런거 할때 쓰는 명령어좀~~ ☆무적기사★ 2005.08.05 792
8814 아마란스 2005.06.19 636
8813 ★RPG_Maker★ 2005.09.02 797
8812 흑흑 콩나물 2015.05.16 659
8811 흑인rpg왜없어짐? 2 자라토끼 2014.05.18 867
8810 흑백으로 만들기(RPG2003)(빠른답변부탁) 『덩키동크』 2006.05.25 1287
8809 흑백으로 만들기(RPG2003)(빠른답변부탁) 1 cyverjen 2006.05.25 1334
8808 흑룡님 사라진터전 최신판 없나요? 2 에에... 닉넴바뀨라네요.. 2014.06.22 681
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 442 Next
/ 442