Notice
Recent Comments
Link
Tags
- 자바 한줄씩 읽기
- 클라우드서버 생성
- node js express install
- ubuntu node js install
- tzselect
- express install
- 디지털오션 서버생성하기
- node 버전확인
- c언어 파일 읽기
- mysql index 생성
- Node.js express install
- c file read
- 디지털오션 드로플릿
- 우분투 node js 설치
- 우분투 시간설정
- 자바 파일 한줄씩 읽기
- 라즈베리파이4
- Ubuntu timezone
- java 숫자를 문자로 변환하기
- npm버전확인
- 파이썬
- 디지털오션 클라우드서버 생성하기
- C언어
- node js 버전확인
- 우분투 시간변경
- index 생성
- Python
- 파이썬 반복문
- ubuntu node js
- raspi-config
Archives
- Today
- Total
목록c file read (1)
호그래머

1. C언어로 파일 읽기 #define _CRT_SECURE_NO_WARNINGS #include void main() { FILE* fp = fopen("C:\\Users\\HO\\Desktop\\test.txt", "r"); char buffer[500] = { 0, }; fread(buffer, 1, 500, fp); printf("%s \r\n", buffer); printf("%c \r\n", buffer[0]); printf("%c \r\n", buffer[1]); fclose(fp); } 테스트 파일내용은 ABCDE12345abcd6789 입니다. 결과
C
2023. 6. 29. 00:36