Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
Tags
- CODEGATE
- ํดํน
- web
- ctf
- webhackingkr
- WebHacking
- webhacking.kr
- ์์คํ ํ๋ก๊ทธ๋๋ฐ
- Linux
- crosssitescripting
- hacking
- SQLInjection
- XSS
- sqli
- MySQL
- ํ๋ก์ธ์ค
- ์๊ณ ๋ฆฌ์ฆ
- Writeup
- Los
- SQL
- Python
- ์ํธ๋ฐฐ์
- lordofsqlinjection
- CCE
- ์ด์์ฒด์
- ubuntu
- ์์คํ
- rubiya
- SQL Injection
- ์นํดํน
Archives
- Today
- Total
One_Blog
C - ์์คํ ํ๋ก๊ทธ๋๋ฐ ์์ - 1 [์์คํ ํ๋ก๊ทธ๋๋ฐ] ๋ณธ๋ฌธ
์๊ณ ๋ฆฌ์ฆ
C - ์์คํ ํ๋ก๊ทธ๋๋ฐ ์์ - 1 [์์คํ ํ๋ก๊ทธ๋๋ฐ]
0xOne 2023. 3. 17. 11:52728x90
#include<stdio.h>
int main()
{
writeFile();
readFile();
}
void writeFile()
{
FILE *fp;
fp = fopen("testFile","w");
fprintf(fp, "File Write Test!\n");
char testStr[1024] = "Test String.\n";
fwrite(testStr, 100, 1, fp);
fclose(fp);
}
void readFile()
{
FILE *fp;
char str[1024];
fp = fopen("testFile","r");
fgets(str,1024,fp); printf("%s",str);
fread(str,1024,1,fp); printf("%s\n",str);
fclose(fp);
}
๐
'์๊ณ ๋ฆฌ์ฆ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๋ฐฑ์ค 1707 - ์ด๋ถ ๊ทธ๋ํ (0) | 2023.06.21 |
---|---|
C - ์์คํ ํ๋ก๊ทธ๋๋ฐ ์์ - 3 [์์คํ ํ๋ก๊ทธ๋๋ฐ] (0) | 2023.03.17 |
C - ์์คํ ํ๋ก๊ทธ๋๋ฐ ์์ - 2 [์์คํ ํ๋ก๊ทธ๋๋ฐ] (0) | 2023.03.17 |
C - ํ์ผ์ ๊ธ ์ฐ๊ณ ์ํ๋ฒณ ๊ฐฏ์ ์ธ๊ธฐ [์์คํ ํ๋ก๊ทธ๋๋ฐ] (1) | 2023.03.17 |
์ด์ค ์ฐ๊ฒฐ ๋ฆฌ์คํธ - C์ธ์ด ๊ตฌํ (2) | 2022.11.16 |