일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- compare
- stream
- SERIAL
- file access
- parameter
- wpf
- aduino
- c++
- atmega328
- flutter
- UNO
- Contour
- Read
- java
- memory
- Class
- public
- length
- APP
- 3D
- mfc
- inheritance
- Pointer
- Barcode
- preprocessing
- sensor
- digitalRead
- Encapusulation
- Unity
- Android
- Today
- Total
목록txt (2)
폴크(FOLC)
두 대의 PC가 네트워크 드라이브를 통해 공유된 폴더에서 파일을 생성하고, 메시지를 주고받을때 아래과 같이 예외(Exception)가 발생할 수 있다.원인파일이 아직 완전히 생성되지 않았을 때 접근파일 작성이 끝나기 전에 다른 PC에서 접근하면 IOException이나 FileNotFoundException이 발생할 수 있습니다.버퍼링 및 파일 캐싱 문제파일 시스템에서 파일 생성 직후에 바로 디스크에 반영되지 않아 접근 시 에러가 발생할 수 있습니다.파일 잠금 (File Locking)한쪽 PC에서 파일을 아직 닫지 않은 상태일 경우, 다른 PC가 파일을 읽으려 할 때 "사용 중" 예외가 날 수 있습니다. 방안 텍스트 파일 생성 → 완료 메시지 전송 → 수신 측에서 파일 안정성 체크 후 → 파일 읽기원본..

# MFC를 이용하는 과정에서 HDD 에 존재하는 파일 ( txt format ) 제어 > Save, Load 형태 - CStdioFile 이용 > exe 파일 위치에 test.txt 파일 생성 # 소스 코드 bool CTxTFormHelper::ReadFile(CString strFileName) { std::vector vecParam; CStdioFile file; CFileException e; if (file.Open(strFileName, CFile::modeReadWrite | CFile::typeText, &e) == TRUE) { CString strReadData; while (file.ReadString(strReadData) == TRUE) { vecParam.push_back(st..