*해당 문서는 미리보기가 지원되지 않습니다.
컴파일 실행환경
열혈강의 C소스1장
2장
3장
4장
5장
6장
7장
8장
9장
11장
12장
13장
14장
16장
17장
18장
19장
21장
22장
23장
24장
25장
26장
27장
본문내용
1장 :/* eof_pro3.c */
#include <stdio.h>
int main(void)
{
int state; // error 체크 변수.
char ch;
/* 읽기 전용 파일 개방 */
FILE* file = fopen("Test.txt", "wb");
if(file==NULL){
printf("file open error!\n");
return 1;
}
fputc(`1`, file);
fputc((char)255, file); // char 형으로 형 변환
fputc(`2`, file);
/* 파일의 종결 */
state=fclose(file);
if(state!=0){
printf("file close error!\n");
return 1;
}
/* 읽기 전용 파일 개방 */
file = fopen("Test.txt", "rb");
if(file==NULL){
printf("file open error!\n");
return 1;
}
while(1)
{
ch=fgetc(file);
if(feof(file)!=0)
break;
printf("data : %c \n", ch);
}
/* 파일의 종결 */
state=fclose(file);
if(state!=0){
printf("file close error!\n");
return 1;
}
return 0;
}
이하생략
압축파일 내 파일목록
열혈_source/11장/array1.c
열혈_source/11장/array2.c
열혈_source/11장/ar_str.c
열혈_source/11장/scanf_str.c
열혈_source/11장/va_str.c
열혈_source/12장/pointer1.c
열혈_source/13장/pointer_array1.c
열혈_source/13장/pointer_array2.c
열혈_source/13장/pointer_array3.c
열혈_source/13장/pointer_op.c
열혈_source/13장/ptr_arr.c
열혈_source/13장/str_arr.c
열혈_source/13장/str_prn.c
열혈_source/13장/two_same.c
열혈_source/14장/arr_adder.c
열혈_source/14장/arr_fct.c
열혈_source/14장/by_val.c
열혈_source/14장/max_fct.c
열혈_source/14장/ref_swap.c
열혈_source/14장/val_swap.c
열혈_source/16장/by3arr.c
열혈_source/16장/init_case.c
열혈_source/16장/popu_search.c
열혈_source/17장/ptr_swap1.c
열혈_source/17장/ptr_swap2.c
열혈_source/18장/arr2_name.c
열혈_source/18장/arr2_ptr.c
열혈_source/18장/pnt_arr.c
열혈_source/18장/two_array1.c
열혈_source/18장/two_array2.c
열혈_source/19장/fct_ptr1.c
열혈_source/19장/fct_ptr2.c
열혈_source/19장/main_argc.c
열혈_source/19장/main_argc.c.bak
열혈_source/19장/private_arg.c
열혈_source/1장/Hello.c
열혈_source/21장/atoi.c
열혈_source/21장/character.c
열혈_source/21장/char_IO.c
열혈_source/21장/Ctrl_Z.c
열혈_source/21장/fputs.c
열혈_source/21장/lower_upper.c
열혈_source/21장/ptrcomp.c
열혈_source/21장/puts_fputs.c
열혈_source/21장/reverse.c
열혈_source/21장/strcamp.c
열혈_source/21장/strcat.c
열혈_source/21장/strcpy.c
열혈_source/21장/string.c
열혈_source/21장/strlen.c
열혈_source/21장/strncamp.c
열혈_source/21장/strncat.c
열혈_source/21장/strncpy.c
열혈_source/22장/distance1.c
열혈_source/22장/pointer_pointer.c
열혈_source/22장/struct_pointer1.c
열혈_source/22장/struct_pointer2.c
열혈_source/22장/struct_pointer3.c
열혈_source/22장/TelPhone1.c
열혈_source/22장/TelPhone2.c
열혈_source/23장/def_struct1.c
열혈_source/23장/def_struct2.c
열혈_source/23장/def_struct3.c
열혈_source/23장/enum.c
열혈_source/23장/enum_usable1.c
열혈_source/23장/enum_usable2.c
열혈_source/23장/overlapped.c
열혈_source/23장/struct_callby.c
열혈_source/23장/struct_op.c
열혈_source/23장/struct_return.c
열혈_source/23장/typedef.c
열혈_source/23장/union.c
열혈_source/24장/carriage.c
열혈_source/24장/CR_LF.c
열혈_source/24장/eof_pro1.c
열혈_source/24장/eof_pro2.c
열혈_source/24장/eof_pro3.c
열혈_source/24장/fgets.c
열혈_source/24장/file_basic.c
열혈_source/24장/file_end.c
열혈_source/24장/fomatted_io.c
열혈_source/24장/fputs_puts.c
열혈_source/24장/fseek.c
열혈_source/25장/calloc.c
열혈_source/25장/malloc&free.c
열혈_source/25장/memory.c
열혈_source/25장/memory.c.bak
열혈_source/25장/ProbArray.c
열혈_source/25장/ProbArray2.c
열혈_source/26장/add.c
열혈_source/26장/add_literal.c
열혈_source/26장/arr_macro.c
열혈_source/26장/Circle1.c
열혈_source/26장/predef_macro.c
열혈_source/26장/Preproc.c
열혈_source/26장/Preproc.c.bak
열혈_source/26장/square1.c
열혈_source/26장/square1.c.bak
열혈_source/26장/square2.c
열혈_source/26장/str_con.c
열혈_source/26장/str_literal.c
열혈_source/26장/token_concat.c
열혈_source/27장/add.h
열혈_source/27장/calculator.c
열혈_source/27장/calculator.c.bak
열혈_source/27장/calculator.h
열혈_source/27장/cal_main.c
열혈_source/27장/condi_main.c
열혈_source/27장/count.h
열혈_source/27장/count_main.c
열혈_source/27장/hello1.h
열혈_source/27장/hello2.h
열혈_source/27장/hello3.h
열혈_source/27장/minus.h
열혈_source/2장/printf1.c
열혈_source/2장/printf2.c
열혈_source/3장/comma_op.c
열혈_source/3장/op1.c
열혈_source/3장/op2.c
열혈_source/3장/op3.c
열혈_source/3장/op4.c
열혈_source/3장/op5.c
열혈_source/3장/op6.c
열혈_source/3장/op7.c
열혈_source/3장/simpleadd1.c
열혈_source/3장/simpleadd2.c
열혈_source/3장/simpleadd3.c
열혈_source/3장/simpleadd4.c
열혈_source/3장/val_declear.c
열혈_source/3장/val_position.c
열혈_source/4장/float_error.c
열혈_source/4장/notation.c
열혈_source/5장/auto_conv1.c
열혈_source/5장/char_add.c
열혈_source/5장/circle_area.c
열혈_source/5장/conv_div.c
열혈_source/5장/how_char.c
열혈_source/5장/how_char.c.bak
열혈_source/5장/sizeof.c
열혈_source/6장/field_wid.c
열혈_source/6장/field_wid.c.bak
열혈_source/6장/scanf_conv1.c
열혈_source/6장/scanf_conv2.c
열혈_source/7장/add_end.c
열혈_source/7장/add_ton.c
열혈_source/7장/foradd.c
열혈_source/7장/hello_while.c
열혈_source/7장/mean.c
열혈_source/7장/mean.c.bak
열혈_source/7장/nested_for.c
열혈_source/7장/nested_while.c
열혈_source/7장/nine_nine.c
열혈_source/7장/nine_nine2.c
열혈_source/7장/two_to_nine.c
열혈_source/7장/two_to_nine2.c
열혈_source/7장/two_to_nine2.c.bak
열혈_source/8장/basic_if.c
열혈_source/8장/basic_if2.c
열혈_source/8장/basic_if2.c.bak
열혈_source/8장/basic_if3.c
열혈_source/8장/basic_ifelse.c
열혈_source/8장/basic_switch.c.bak
열혈_source/8장/calcu_one.c
열혈_source/8장/calcu_two.c
열혈_source/8장/english_school.c
열혈_source/8장/english_school.c.bak
열혈_source/8장/english_school2.c
열혈_source/8장/goto.c
열혈_source/8장/skip_conti.c
열혈_source/8장/three_four.c
열혈_source/8장/three_op.c
열혈_source/8장/until_sum.c
열혈_source/9장/abso_large.c
열혈_source/9장/func_add.c
열혈_source/9장/glo_val.c
열혈_source/9장/glo_val2.c
열혈_source/9장/large_number.c
열혈_source/9장/local_val1.c
열혈_source/9장/local_val2.c
열혈_source/9장/local_val3.c
열혈_source/9장/recursive_basic.c
열혈_source/9장/recursive_basic2.c
열혈_source/9장/recursive_basic2.c.bak
열혈_source/9장/rec_facto.c
열혈_source/9장/return_printf.c
열혈_source/9장/static_val.c
열혈_source/11장/array2.c
열혈_source/11장/ar_str.c
열혈_source/11장/scanf_str.c
열혈_source/11장/va_str.c
열혈_source/12장/pointer1.c
열혈_source/13장/pointer_array1.c
열혈_source/13장/pointer_array2.c
열혈_source/13장/pointer_array3.c
열혈_source/13장/pointer_op.c
열혈_source/13장/ptr_arr.c
열혈_source/13장/str_arr.c
열혈_source/13장/str_prn.c
열혈_source/13장/two_same.c
열혈_source/14장/arr_adder.c
열혈_source/14장/arr_fct.c
열혈_source/14장/by_val.c
열혈_source/14장/max_fct.c
열혈_source/14장/ref_swap.c
열혈_source/14장/val_swap.c
열혈_source/16장/by3arr.c
열혈_source/16장/init_case.c
열혈_source/16장/popu_search.c
열혈_source/17장/ptr_swap1.c
열혈_source/17장/ptr_swap2.c
열혈_source/18장/arr2_name.c
열혈_source/18장/arr2_ptr.c
열혈_source/18장/pnt_arr.c
열혈_source/18장/two_array1.c
열혈_source/18장/two_array2.c
열혈_source/19장/fct_ptr1.c
열혈_source/19장/fct_ptr2.c
열혈_source/19장/main_argc.c
열혈_source/19장/main_argc.c.bak
열혈_source/19장/private_arg.c
열혈_source/1장/Hello.c
열혈_source/21장/atoi.c
열혈_source/21장/character.c
열혈_source/21장/char_IO.c
열혈_source/21장/Ctrl_Z.c
열혈_source/21장/fputs.c
열혈_source/21장/lower_upper.c
열혈_source/21장/ptrcomp.c
열혈_source/21장/puts_fputs.c
열혈_source/21장/reverse.c
열혈_source/21장/strcamp.c
열혈_source/21장/strcat.c
열혈_source/21장/strcpy.c
열혈_source/21장/string.c
열혈_source/21장/strlen.c
열혈_source/21장/strncamp.c
열혈_source/21장/strncat.c
열혈_source/21장/strncpy.c
열혈_source/22장/distance1.c
열혈_source/22장/pointer_pointer.c
열혈_source/22장/struct_pointer1.c
열혈_source/22장/struct_pointer2.c
열혈_source/22장/struct_pointer3.c
열혈_source/22장/TelPhone1.c
열혈_source/22장/TelPhone2.c
열혈_source/23장/def_struct1.c
열혈_source/23장/def_struct2.c
열혈_source/23장/def_struct3.c
열혈_source/23장/enum.c
열혈_source/23장/enum_usable1.c
열혈_source/23장/enum_usable2.c
열혈_source/23장/overlapped.c
열혈_source/23장/struct_callby.c
열혈_source/23장/struct_op.c
열혈_source/23장/struct_return.c
열혈_source/23장/typedef.c
열혈_source/23장/union.c
열혈_source/24장/carriage.c
열혈_source/24장/CR_LF.c
열혈_source/24장/eof_pro1.c
열혈_source/24장/eof_pro2.c
열혈_source/24장/eof_pro3.c
열혈_source/24장/fgets.c
열혈_source/24장/file_basic.c
열혈_source/24장/file_end.c
열혈_source/24장/fomatted_io.c
열혈_source/24장/fputs_puts.c
열혈_source/24장/fseek.c
열혈_source/25장/calloc.c
열혈_source/25장/malloc&free.c
열혈_source/25장/memory.c
열혈_source/25장/memory.c.bak
열혈_source/25장/ProbArray.c
열혈_source/25장/ProbArray2.c
열혈_source/26장/add.c
열혈_source/26장/add_literal.c
열혈_source/26장/arr_macro.c
열혈_source/26장/Circle1.c
열혈_source/26장/predef_macro.c
열혈_source/26장/Preproc.c
열혈_source/26장/Preproc.c.bak
열혈_source/26장/square1.c
열혈_source/26장/square1.c.bak
열혈_source/26장/square2.c
열혈_source/26장/str_con.c
열혈_source/26장/str_literal.c
열혈_source/26장/token_concat.c
열혈_source/27장/add.h
열혈_source/27장/calculator.c
열혈_source/27장/calculator.c.bak
열혈_source/27장/calculator.h
열혈_source/27장/cal_main.c
열혈_source/27장/condi_main.c
열혈_source/27장/count.h
열혈_source/27장/count_main.c
열혈_source/27장/hello1.h
열혈_source/27장/hello2.h
열혈_source/27장/hello3.h
열혈_source/27장/minus.h
열혈_source/2장/printf1.c
열혈_source/2장/printf2.c
열혈_source/3장/comma_op.c
열혈_source/3장/op1.c
열혈_source/3장/op2.c
열혈_source/3장/op3.c
열혈_source/3장/op4.c
열혈_source/3장/op5.c
열혈_source/3장/op6.c
열혈_source/3장/op7.c
열혈_source/3장/simpleadd1.c
열혈_source/3장/simpleadd2.c
열혈_source/3장/simpleadd3.c
열혈_source/3장/simpleadd4.c
열혈_source/3장/val_declear.c
열혈_source/3장/val_position.c
열혈_source/4장/float_error.c
열혈_source/4장/notation.c
열혈_source/5장/auto_conv1.c
열혈_source/5장/char_add.c
열혈_source/5장/circle_area.c
열혈_source/5장/conv_div.c
열혈_source/5장/how_char.c
열혈_source/5장/how_char.c.bak
열혈_source/5장/sizeof.c
열혈_source/6장/field_wid.c
열혈_source/6장/field_wid.c.bak
열혈_source/6장/scanf_conv1.c
열혈_source/6장/scanf_conv2.c
열혈_source/7장/add_end.c
열혈_source/7장/add_ton.c
열혈_source/7장/foradd.c
열혈_source/7장/hello_while.c
열혈_source/7장/mean.c
열혈_source/7장/mean.c.bak
열혈_source/7장/nested_for.c
열혈_source/7장/nested_while.c
열혈_source/7장/nine_nine.c
열혈_source/7장/nine_nine2.c
열혈_source/7장/two_to_nine.c
열혈_source/7장/two_to_nine2.c
열혈_source/7장/two_to_nine2.c.bak
열혈_source/8장/basic_if.c
열혈_source/8장/basic_if2.c
열혈_source/8장/basic_if2.c.bak
열혈_source/8장/basic_if3.c
열혈_source/8장/basic_ifelse.c
열혈_source/8장/basic_switch.c.bak
열혈_source/8장/calcu_one.c
열혈_source/8장/calcu_two.c
열혈_source/8장/english_school.c
열혈_source/8장/english_school.c.bak
열혈_source/8장/english_school2.c
열혈_source/8장/goto.c
열혈_source/8장/skip_conti.c
열혈_source/8장/three_four.c
열혈_source/8장/three_op.c
열혈_source/8장/until_sum.c
열혈_source/9장/abso_large.c
열혈_source/9장/func_add.c
열혈_source/9장/glo_val.c
열혈_source/9장/glo_val2.c
열혈_source/9장/large_number.c
열혈_source/9장/local_val1.c
열혈_source/9장/local_val2.c
열혈_source/9장/local_val3.c
열혈_source/9장/recursive_basic.c
열혈_source/9장/recursive_basic2.c
열혈_source/9장/recursive_basic2.c.bak
열혈_source/9장/rec_facto.c
열혈_source/9장/return_printf.c
열혈_source/9장/static_val.c
참고 자료
없음태그
프로그램소스 연관자료
이 자료와 함께 구매한 자료
[컴퓨터 정보] C++소스.. 10페이지
[프로그래밍] C언어 16페이지