블로그
-
용량 차지한 빈 파일 만들기
questions/7775027/how-to-create-file-of-x-size void create_emptyfile(char *path, int size) { FILE *fp = fopen
blog.naver.com · 2015.03.25
-
csv 파일 처리
$upfile ); $fp = fopen($path.
blog.naver.com · 2014.12.08
-
[영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] c언어 임의접근
; long pos; FILE *fp = NULL; // 배열을 초기화한다. init_table(table, SIZE); // 이진 파일을 쓰기 모드로 연다. if( (fp = fopen 이진 모드로 파일에 저장한다. fwrite(table, sizeof(int), SIZE, fp); fclose(fp); // 이진 파일을 읽기 모드로 연다. if( (fp = fopen
blog.naver.com · 2014.06.03
-
[영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] c언어 예제
}, { 3, "Lee", 4.01 } }; struct student s; FILE *fp = NULL; int i; // 이진 파일을 쓰기 모드로 연다. if( (fp = fopen 저장한다. fwrite(table, sizeof(struct student), SIZE, fp); fclose(fp); // 이진 파일을 읽기 모드로 연다. if( (fp = fopen
blog.naver.com · 2014.06.03
-
[영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] c언어 파일 입출력 예제
"); scanf("%s", file1); printf("복사 파일 이름: "); scanf("%s", file2); // 첫번째 파일을 읽기 모드로 연다. if( (fp1 = fopen \n", file1); exit(1); } // 두번째 파일을 쓰기 모드로 연다. if( (fp2 = fopen(file2, "w")) == NULL ) { fprintf(stderr
blog.naver.com · 2014.06.02
-
[영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] c언어 파일 입출력 예제
#include int main(void) { FILE *fp = NULL; fp = fopen("sample.txt","w"); if(fp == NULL ) printf("파일 열기
blog.naver.com · 2014.05.26
-
[영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] c 언어 이진파일 예제2
#include #define SIZE 5 int main(void) { int i; int buffer[SIZE]; FILE *fp = NULL; fp = fopen("binary.bin
blog.naver.com · 2014.06.03
-
[영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] c언어 이진파일
include #define SIZE 5 int main(void) { int buffer[SIZE] = {10,20,30,40,50}; FILE *fp = NULL; fp = fopen
blog.naver.com · 2014.06.02
-
[영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] c언어 파일 입출력 예제 2
#include int main(void) { FILE *fp = NULL; fp = fopen("sample.txt", "w"); if( fp == NULL ) printf("파일
blog.naver.com · 2014.05.26
-
fopen 선언시에 문제가 생겨요
visual c++ 2008에서 c언어 공부하고 있는데요 FILE *file = fopen("test.txt","wt"); 이렇게 하면 학원에서는 잘 돌아가는데 집에서 하니까 --c users\kang\documents\visual studio 2008\projects\kang_project\kang_project\kang.c(7) : warning C4996: 'fopen
blog.naver.com · 2013.12.16