티스토리 뷰
파일 생성 예제
char a='A';
int b=50000;
double c = 12.345;
char temp[20] = "game school!";
FILE *p_file = fopen ("data.dat", "wb");
if(p_file != NULL)
{
fwrite( &a, sizeof(char), 1, p_file);
fwrite( &b, sizeof(int), 1, p_file);
fwrite( &c, sizeof(double), 1, p_file);
fwrite( temp, sizeof(char), 20, p_file);
fclose(p_file);
} else printf("파일 쓰기 실패!");
파일 읽기 예제
char a;
int b;
double c;
char temp[20];
FILE *p_file = fopen ("data.dat", "rb");
if(p_file != NULL)
{
//fseek(p_file, sizeof(char)+sizeof(int)+sizeof(double), SEEK_SET)
fread( &a, sizeof(char), 1, p_file);
fread( &b, sizeof(int), 1, p_file);
fread( &c, sizeof(double), 1, p_file);
fread( temp, sizeof(char), 20, p_file);
fclose(p_file);
printf("%c, %d, %f, %s\n", a,b,c,temp);
} else printf("파일 읽기 실패!\n");
- Total
- Today
- Yesterday
- 정규식
- SpringXmlModelInspection
- no getter for property named
- JSON파싱
- 이메일 정규식
- 계좌번호정규식
- js
- 엑셀다운로드
- PageNotFound - No mapping for GET
- jQuery
- spring 엑셀
- select제어
- POI EXCEL
- poi 엑셀
- IntelliJ #gradle #tomcat #spring #springmvc
- mybatis
- selectbox
- spring error #
- JSON날짜
- JSON
- 정규식 특수문자
- poi
- Spring
- 정규식 한글만
- 인텔리제이
- Failed to load resource: the server responded with a status of 404 (Not Found)
- 공백찾기
- Regex
- 정규식 숫자만
- ''찾기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |