따..딱히 공부하려고 포스팅하는 건 아니니까..!
public void WriteStringToFile(Dictionary dict, string filename) { string path = PathForDocumentsFile(filename + ".json"); FileStream file = new FileStream(path, FileMode.Create, FileAccess.Write); StreamWriter streamWriter = new StreamWriter(file); // serialize JSONNode serialize = new JSONClass(); foreach (KeyValuePair data in dict) { serialize.Add(data.Key, data.Value); } string str = null; st..
출처 http://www.unitystudy.net/bbs/board.php?bo_table=dustin&wr_id=357 각 플랫폼별로 Application 클래스의 프로퍼티들이 지정하는 경로와 엑세스에 대해 정리해보았습니다. [윈도우 에디터]Application.persistentDataPath : 사용자디렉토리/AppData/LocalLow/회사이름/프로덕트이름파일 읽기 쓰기 가능Application.dataPath : 프로젝트디렉토리/AssetsApplication.streamingAssetsPath : 프로젝트디렉토리/Assets/StreamingAssets파일 읽기 쓰기 가능 [윈도우 응용프로그램]Application.persistentDataPath : 사용자디렉토리/AppData/Local..
C++는 C언어를 기반으로 하고 있는 언어로, C언어에 클래스, 상속 등 객체지향의 특징과 기능을 넣은 객체지향 언어이다. 그런데 최근 Java나 C#과 같은 다른 객체지향 언어를 사용하면서 과연 C++은 객체지향 언어일까? 하는 의문이 들었다. 그래서 이번 기회에 객체지향과 C++에 대해서 조사하고 정리해보았다. 1. 객체지향말 그대로 객체를 지향한다는 의미이다. 객체지향에 대해 더 자세하게 설명하기 위해서 객체지향 프로그래밍에 대해 설명하고자 한다. 2. 객체지향 프로그래밍 (OOP, Object-Oriented Programming)프로그램을 여러개의 독립된 객체들의 모임으로 보는 프로그래밍의 패러다임을 말한다. 객체지향 프로그래밍의 특징으로는 다음과 같이 크게 5가지로 나눌 수 있다. (클래스를 ..