기타툴 스크립트 open에 대한 질문입니다.
2010.01.08 00:10
---------------------------------------------------------------------------------------------------------------------
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는 ? 제한모드라는데 전혀 감을 못잡겠네요.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
7070 | 그냥 평범한 사람이 스크립트를 어떻게 사용하라는건지 ...? | [모비딕] | 2010.01.20 | 83 |
7069 | 그냥 평범한 사람이 스크립트를 어떻게 사용하라는건지 ...? | 한조 | 2010.01.19 | 246 |
7068 | 이벤트의 완전삭제? | 슈퍼스타 | 2010.01.19 | 59 |
7067 | VX사용중인데요 전체화면테스트시에 화면깜빡임이 너무 심해요 | 적안왕 | 2010.01.19 | 301 |
7066 | 예전 RPG 게임중에.... [1] | rpg의제왕 | 2010.01.19 | 189 |
7065 | 액션만들기툴로 게임을 만들어도 실행이 되지 않습니다. | 고래83 | 2010.01.16 | 74 |
7064 | 맵배치에 대해 | 정의로운녀석! | 2010.01.15 | 64 |
7063 | 전투음악에 대해서 | 하멜른 | 2010.01.11 | 225 |
7062 | [vx]키입력의처리에 대해서. | [모비딕] | 2010.01.10 | 97 |
7061 | [vx]키입력의처리에 대해서. [1] | B.S.K | 2010.01.10 | 278 |
» | 스크립트 open에 대한 질문입니다. | 녹색주머니 | 2010.01.08 | 275 |
7059 | 게이지 바 만들기 | [모비딕] | 2010.01.07 | 112 |
7058 | 게이지 바 만들기 [3] | †호크† | 2010.01.07 | 600 |
7057 | 게임 뜯기......... [5] | 김다람쥐 | 2010.01.03 | 556 |
7056 | rpg2000 게임 오류...lmt | YellowCake | 2010.01.01 | 319 |
7055 | rpg2000 게임 오류...lmt [1] | 에반스 | 2009.12.30 | 534 |
7054 | RPG XP에서 노비타의 바이오하자드에서의 무기 조준구현....+그외 자잘한 초보적질문 | Vermond | 2009.12.30 | 185 |
7053 | RPG XP에서 노비타의 바이오하자드에서의 무기 조준구현....+그외 자잘한 초보적질문 | F☆ | 2009.12.30 | 379 |
7052 | 이거 왜 엔피시가 안뜨죠????? | 하얀도깨비 | 2009.12.29 | 88 |
7051 | 추가 사진 | 호로 | 2009.12.28 | 75 |