조회 수 1465 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
안녕하세요~ 전역을 앞에 두고 다시 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
번호 제목 글쓴이 날짜 조회 수
5908 메뉴 시스템 편집 마리엣타 2010.01.21 1396
5907 [rpgvx]미연시처럼 앨범 넣기 카리스 2010.01.21 2212
5906 스위치 변수에 관한 건데요 B.S.K 2010.01.21 1649
5905 스위치 변수에 관한 건데요 호허 2010.01.21 1392
5904 [vx]메세지 뜨는 속도 조절하는 법 B.S.K 2010.01.21 2170
5903 알만툴 2000에서 DirectDraw Error가 뜹니다. 쉐로, 2010.01.21 1622
5902 [vx]키입력의처리에 대해서. 1 B.S.K 2010.01.12 2093
5901 전투음악에 대해서 천류 2010.01.12 1380
5900 전투음악에 대해서 하멜른 2010.01.12 1362
5899 맵배치에 대해 정의로운녀석! 2010.01.12 1119
5898 VX사용중인데요 전체화면테스트시에 화면깜빡임이 너무 심해요 쉐로, 2010.01.12 1895
5897 VX사용중인데요 전체화면테스트시에 화면깜빡임이 너무 심해요 적안왕 2010.01.12 2095
5896 그냥 평범한 사람이 스크립트를 어떻게 사용하라는건지 ...? [모비딕] 2010.01.12 1354
5895 그냥 평범한 사람이 스크립트를 어떻게 사용하라는건지 ...? 한조 2010.01.12 1460
5894 게이지 바 만들기 3 1 file †호크† 2010.01.07 1920
» 스크립트 open에 대한 질문입니다. 1 녹색주머니 2010.01.07 1465
5892 [vx]키입력의처리에 대해서. file [모비딕] 2010.01.07 1421
5891 게임 뜯기......... 5 1 김다람쥐 2010.01.03 2321
5890 게이지 바 만들기 1 file [모비딕] 2010.01.03 1391
5889 rpg2000 게임 오류...lmt 1 2 file 에반스 2009.12.30 2424
Board Pagination Prev 1 ... 142 143 144 145 146 147 148 149 150 151 ... 442 Next
/ 442






[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)