{"id":52748,"date":"2025-08-11T18:25:05","date_gmt":"2025-08-11T10:25:05","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/52748.html"},"modified":"2025-08-11T18:25:05","modified_gmt":"2025-08-11T10:25:05","slug":"%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/52748.html","title":{"rendered":"\u6587\u4ef6\u64cd\u4f5c\u8be6\u89e3"},"content":{"rendered":"<h2>\u4e00\u3001\u4ec0\u4e48\u662f\u6587\u4ef6&#xff1f;<\/h2>\n<h3>1.\u6587\u4ef6\u7684\u57fa\u672c\u6982\u5ff5<\/h3>\n<p>\u6587\u4ef6\u662f\u5b58\u50a8\u5728\u8ba1\u7b97\u673a\u6216\u5176\u4ed6\u6570\u5b57\u8bbe\u5907\u4e2d\u7684\u4fe1\u606f\u96c6\u5408&#xff0c;\u901a\u5e38\u4ee5\u7279\u5b9a\u683c\u5f0f\u7ec4\u7ec7&#xff0c;\u7528\u4e8e\u4fdd\u5b58\u6570\u636e\u3001\u7a0b\u5e8f\u6216\u6587\u6863\u3002\u6587\u4ef6\u901a\u8fc7\u6587\u4ef6\u540d\u548c\u6269\u5c55\u540d\u6807\u8bc6&#xff0c;\u4f8b\u5982\u00a0report.docx&#xff08;\u6587\u6863\u6587\u4ef6&#xff09;\u6216\u00a0data.xlsx&#xff08;\u7535\u5b50\u8868\u683c\u6587\u4ef6&#xff09;\u3002\u8981\u662f\u6ca1\u6709\u6587\u4ef6&#xff0c;\u6211\u4eec\u5199\u7684\u7a0b\u5e8f\u7684\u6570\u636e\u662f\u5b58\u50a8\u5728\u7535\u8111\u7684\u5185\u5b58\u4e2d&#xff0c;\u5982\u679c\u7a0b\u5e8f\u9000\u51fa&#xff0c;\u5185\u5b58\u56de\u6536&#xff0c;\u6570\u636e\u5c31\u4e22\u5931\u4e86&#xff0c;\u7b49\u518d\u6b21\u8fd0\u884c\u7a0b\u5e8f&#xff0c;\u5c31\u770b\u4e0d\u5230\u4e0a\u6b21\u7a0b\u5e8f\u7684\u6570\u636e\u3002<\/p>\n<h3>2.\u6587\u4ef6\u7684\u5e38\u89c1\u7c7b\u578b<\/h3>\n<p>\u00b7\u6587\u672c\u6587\u4ef6&#xff08;\u5982\u00a0.txt\u3001.csv&#xff09;&#xff1a;\u5b58\u50a8\u7eaf\u6587\u672c\u6216\u7ed3\u6784\u5316\u6570\u636e\u3002<\/p>\n<p>\u00b7\u6587\u6863\u6587\u4ef6&#xff08;\u5982\u00a0.docx\u3001.pdf&#xff09;&#xff1a;\u5305\u542b\u683c\u5f0f\u5316\u6587\u672c\u3001\u56fe\u50cf\u7b49&#xff0c;\u901a\u5e38\u7531\u529e\u516c\u8f6f\u4ef6\u521b\u5efa\u3002<\/p>\n<p>\u00b7\u5a92\u4f53\u6587\u4ef6&#xff08;\u5982\u00a0.mp3\u3001.mp4&#xff09;&#xff1a;\u5b58\u50a8\u97f3\u9891\u3001\u89c6\u9891\u6216\u56fe\u50cf\u6570\u636e\u3002<\/p>\n<p>\u00b7\u53ef\u6267\u884c\u6587\u4ef6&#xff08;\u5982\u00a0.exe\u3001.app&#xff09;&#xff1a;\u5305\u542b\u7a0b\u5e8f\u6307\u4ee4&#xff0c;\u53ef\u76f4\u63a5\u8fd0\u884c\u3002<\/p>\n<p>\u5728\u7a0b\u5e8f\u8bbe\u8ba1\u4e2d&#xff0c;\u6211\u4eec\u53ef\u4ee5\u628a\u4e0a\u9762\u7684\u6587\u4ef6\u7c7b\u578b\u5927\u81f4\u5206\u4e3a\u4e24\u7c7b&#xff1a;\u7a0b\u5e8f\u6587\u4ef6\u3001\u6570\u636e\u6587\u4ef6&#xff08;\u4ece\u6587\u4ef6\u529f\u80fd\u7684\u89d2\u5ea6\u6765\u5206\u7c7b \u7684&#xff09;\u3002<\/p>\n<h4>2.1\u7a0b\u5e8f\u6587\u4ef6<\/h4>\n<p>\u7a0b\u5e8f\u6587\u4ef6\u5305\u62ec\u6e90\u7a0b\u5e8f\u6587\u4ef6&#xff08;\u540e\u7f00\u4e3a.c&#xff09;,\u76ee\u6807\u6587\u4ef6&#xff08;windows\u73af\u5883\u540e\u7f00\u4e3a.obj&#xff09;,\u53ef\u6267\u884c\u7a0b\u5e8f&#xff08;windows \u73af\u5883\u540e\u7f00\u4e3a.exe&#xff09;\u3002<\/p>\n<h4>2.2\u6570\u636e\u6587\u4ef6<\/h4>\n<p>\u6587\u4ef6\u7684\u5185\u5bb9\u4e0d\u4e00\u5b9a\u662f\u7a0b\u5e8f&#xff0c;\u800c\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u8bfb\u5199\u7684\u6570\u636e&#xff0c;\u6bd4\u5982\u7a0b\u5e8f\u8fd0\u884c\u9700\u8981\u4ece\u4e2d\u8bfb\u53d6\u6570\u636e\u7684\u6587\u4ef6&#xff0c;\u6216\u8005\u8f93\u51fa\u5185\u5bb9\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u672c\u7ae0\u7684\u91cd\u70b9\u5c31\u662f\u6570\u636e\u6587\u4ef6&#xff01;<\/p>\n<h2>3.\u6587\u4ef6\u7684\u7ec4\u6210\u8981\u7d20<\/h2>\n<ul>\n<li>\u6587\u4ef6\u540d&#xff1a;\u6587\u4ef6\u7684\u552f\u4e00\u6807\u8bc6\u7b26&#xff0c;\u901a\u5e38\u7531\u7528\u6237\u81ea\u5b9a\u4e49&#xff08;\u5982\u00a0project_plan&#xff09;\u3002<\/li>\n<li>\u6269\u5c55\u540d&#xff1a;\u540e\u7f00&#xff08;\u5982\u00a0.txt\u3001.jpg&#xff09;&#xff0c;\u7528\u4e8e\u6307\u793a\u6587\u4ef6\u7c7b\u578b\u548c\u5173\u8054\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li>\u5185\u5bb9&#xff1a;\u6587\u4ef6\u5185\u90e8\u5b58\u50a8\u7684\u5b9e\u9645\u6570\u636e&#xff0c;\u53ef\u4ee5\u662f\u6587\u672c\u3001\u56fe\u50cf\u3001\u97f3\u9891\u3001\u4ee3\u7801\u7b49\u3002<\/li>\n<\/ul>\n<h2>4.\u6587\u4ef6\u7684\u7ba1\u7406<\/h2>\n<ul>\n<li>\u5b58\u50a8\u4f4d\u7f6e&#xff1a;\u6587\u4ef6\u4fdd\u5b58\u5728\u786c\u76d8\u3001U\u76d8\u3001\u4e91\u5b58\u50a8\u7b49\u4ecb\u8d28\u4e2d&#xff0c;\u901a\u8fc7\u76ee\u5f55&#xff08;\u6587\u4ef6\u5939&#xff09;\u5206\u7c7b\u7ba1\u7406\u3002<\/li>\n<li>\u64cd\u4f5c&#xff1a;\u5305\u62ec\u521b\u5efa\u3001\u6253\u5f00\u3001\u7f16\u8f91\u3001\u590d\u5236\u3001\u79fb\u52a8\u3001\u5220\u9664\u7b49&#xff0c;\u53ef\u901a\u8fc7\u64cd\u4f5c\u7cfb\u7edf\u6216\u5e94\u7528\u7a0b\u5e8f\u5b8c\u6210\u3002<\/li>\n<\/ul>\n<h2>5.\u4e8c\u8fdb\u5236\u6587\u4ef6\u548c\u6587\u672c\u6587\u4ef6<\/h2>\n<p>\u6839\u636e\u6570\u636e\u7684\u7ec4\u7ec7\u5f62\u5f0f&#xff0c;\u6570\u636e\u6587\u4ef6\u88ab\u79f0\u4e3a\u6587\u672c\u6587\u4ef6\u6216\u8005\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/p>\n<p>\u6570\u636e\u5728\u5185\u5b58\u4e2d\u4ee5\u4e8c\u8fdb\u5236\u7684\u5f62\u5f0f\u5b58\u50a8&#xff0c;\u5982\u679c\u4e0d\u52a0\u8f6c\u6362\u7684\u8f93\u51fa\u5230\u5916\u5b58\u7684\u6587\u4ef6\u4e2d&#xff0c;\u5c31\u662f\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002 \u5982\u679c\u8981\u6c42\u5728\u5916\u5b58\u4e0a\u4ee5ASCII\u7801\u7684\u5f62\u5f0f\u5b58\u50a8&#xff0c;\u5219\u9700\u8981\u5728\u5b58\u50a8\u524d\u8f6c\u6362\u3002\u4ee5ASCII\u5b57\u7b26\u7684\u5f62\u5f0f\u5b58\u50a8\u7684\u6587\u4ef6\u5c31\u662f\u6587\u672c\u6587\u4ef6\u3002<\/p>\n<p>\u4e00\u4e2a\u6570\u636e\u5728\u6587\u4ef6\u4e2d\u662f\u600e\u4e48\u5b58\u50a8\u7684\u5462&#xff1f; \u5b57\u7b26\u4e00\u5f8b\u4ee5ASCII\u5f62\u5f0f\u5b58\u50a8&#xff0c;\u6570\u503c\u578b\u6570\u636e\u65e2\u53ef\u4ee5\u7528ASCII\u5f62\u5f0f\u5b58\u50a8&#xff0c;\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e8c\u8fdb\u5236\u5f62\u5f0f\u5b58\u50a8\u3002 \u5982\u6709\u6574\u657010000&#xff0c;\u5982\u679c\u4ee5ASCII\u7801\u7684\u5f62\u5f0f\u8f93\u51fa\u5230\u78c1\u76d8&#xff0c;\u5219\u78c1\u76d8\u4e2d\u5360\u75285\u4e2a\u5b57\u8282&#xff08;\u6bcf\u4e2a\u5b57\u7b26\u4e00\u4e2a\u5b57\u8282&#xff09;&#xff0c;\u800c\u4e8c\u8fdb\u5236\u5f62\u5f0f\u8f93\u51fa&#xff0c;\u5219\u5728\u78c1\u76d8\u4e0a\u53ea\u53604\u4e2a\u5b57\u8282\u3002<\/p>\n<p>\u4e24\u7c7b\u6587\u4ef6\u7684\u5b58\u50a8\u5f62\u5f0f\u5982\u4e0b\u56fe\u6240\u793a&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"372\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102457-6899c4f92dc6f.png\" width=\"1593\" \/><\/p>\n<h2>6.\u6587\u4ef6\u7684\u6253\u5f00\u4e0e\u5173\u95ed<\/h2>\n<p>\u6bcf\u4e2a\u88ab\u4f7f\u7528\u7684\u6587\u4ef6\u90fd\u5728\u5185\u5b58\u4e2d\u5f00\u8f9f\u4e86\u4e00\u4e2a\u76f8\u5e94\u7684\u6587\u4ef6\u4fe1\u606f\u533a&#xff0c;\u7528\u6765\u5b58\u653e\u6587\u4ef6\u7684\u76f8\u5173\u4fe1\u606f&#xff08;\u5982\u6587\u4ef6\u7684\u540d\u5b57&#xff0c;\u6587\u4ef6\u72b6\u6001\u53ca\u6587\u4ef6\u5f53\u524d\u7684\u4f4d\u7f6e\u7b49&#xff09;\u3002\u8fd9\u4e9b\u4fe1\u606f\u662f\u4fdd\u5b58\u5728\u4e00\u4e2a\u7ed3\u6784\u4f53\u53d8\u91cf\u4e2d\u7684\u3002\u8be5\u7ed3\u6784\u4f53\u7c7b\u578b\u662f\u7531\u7cfb\u7edf\u58f0\u660e\u7684&#xff0c;\u53d6\u540dFILE\u3002<\/p>\n<h3>6.1 \u6587\u4ef6\u6307\u9488<\/h3>\n<p>\u6587\u4ef6\u6307\u9488\u662fC\u8bed\u8a00\u4e2d\u7528\u4e8e\u64cd\u4f5c\u6587\u4ef6\u7684\u91cd\u8981\u5de5\u5177&#xff0c;\u5b83\u662f\u4e00\u4e2a\u6307\u5411\u4e0a\u8ff0\u6587\u4ef6\u7ed3\u6784\u4f53\u7684\u6307\u9488&#xff0c;\u7528\u4e8e\u8ddf\u8e2a\u6587\u4ef6\u5f53\u524d\u8bfb\u5199\u4f4d\u7f6e\u3002\u6587\u4ef6\u6307\u9488\u7684\u7c7b\u578b\u4e3aFILE*&#xff0c;\u901a\u5e38\u4e0e\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570\u5982fopen\u3001fclose\u3001fread\u3001fwrite\u7b49\u914d\u5408\u4f7f\u7528\u3002<\/p>\n<h3>6.2\u6587\u4ef6\u6307\u9488\u7684\u58f0\u660e\u4e0e\u521d\u59cb\u5316<\/h3>\n<p>FILE* pf1;<\/p>\n<p>\u5b9a\u4e49pf1\u662f\u4e00\u4e2a\u6307\u5411FILE\u7c7b\u578b\u6570\u636e\u7684\u6307\u9488\u53d8\u91cf\u3002\u53ef\u4ee5\u4f7fpf\u6307\u5411\u67d0\u4e2a\u6587\u4ef6\u7684\u6587\u4ef6\u4fe1\u606f\u533a&#xff08;\u662f\u4e00\u4e2a\u7ed3\u6784\u4f53\u53d8\u91cf&#xff09;\u3002\u901a\u8fc7\u8be5\u6587\u4ef6\u4fe1\u606f\u533a\u4e2d\u7684\u4fe1\u606f\u5c31\u80fd\u591f\u8bbf\u95ee\u8be5\u6587\u4ef6\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u901a\u8fc7\u6587\u4ef6\u6307\u9488\u53d8\u91cf\u80fd\u591f\u95f4\u63a5\u627e\u5230\u4e0e\u5b83\u5173\u8054\u7684\u6587\u4ef6\u3002\u7528\u56fe\u6765\u8868\u8fbe\u7684\u8bdd\u5c31\u662f&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"364\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102457-6899c4f9987ac.png\" width=\"380\" \/><\/p>\n<\/p>\n<p>\u521d\u59cb\u5316\u65f6\u5c31\u53ef\u4ee5\u8c03\u7528\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570\u5982fopen&#xff0c;\u5982\u4e0b&#xff1a;<\/p>\n<p>FILE *fp;<br \/>\nfp &#061; fopen(&#034;example.txt&#034;, &#034;r&#034;); \/\/ \u4ee5\u53ea\u8bfb\u6a21\u5f0f\u6253\u5f00\u6587\u4ef6<br \/>\nif (fp &#061;&#061; NULL) {<br \/>\n    perror(&#034;Error opening file&#034;);<br \/>\n    return 1;<br \/>\n}<\/p>\n<h3>6.3 \u6587\u4ef6\u7684\u6253\u5f00\u4e0e\u5173\u95ed<\/h3>\n<p>\u5982\u679c\u6211\u4eec\u60f3\u8981\u8fdb\u884c\u8bfb\u5199\u6587\u4ef6\u7684\u64cd\u4f5c&#xff0c;\u5c31\u8981\u5148\u628a\u6587\u4ef6\u6253\u5f00&#xff0c;\u8bfb\u5199\u5b8c\u6210\u540e\u5c31\u8981\u628a\u6587\u4ef6\u5173\u95ed\u3002<\/p>\n<p>\u90a3\u8981\u5982\u4f55\u64cd\u4f5c\u5462&#xff1f;<\/p>\n<p>\u89c4\u5b9a\u4e0a&#xff0c;\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528fopen\u6765\u6253\u5f00\u6587\u4ef6&#xff0c;fclose\u6765\u5173\u95ed\u6587\u4ef6\u3002<\/p>\n<h4>1.&#xff09;fopen<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"221\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102457-6899c4f9f12b0.png\" width=\"1187\" \/><\/p>\n<p>\u7b2c\u4e00\u4e2a\u53c2\u6570\u8868\u793a\u6587\u4ef6\u540d<\/p>\n<p>\u7b2c\u4e8c\u4e2a\u53c2\u6570mode\u8868\u793a\u6587\u4ef6\u7684\u6253\u5f00\u6a21\u5f0f<\/p>\n<p>\u4ee5\u4e0b\u662f\u6587\u4ef6\u6253\u5f00\u6a21\u5f0f\u7684\u7efc\u5408&#xff1a;<\/p>\n<p>\u6587\u4ef6\u6253\u5f00\u6a21\u5f0f\u8868\u683c<\/p>\n<table>\n<tr>\u6a21\u5f0f\u63cf\u8ff0\u6587\u4ef6\u5b58\u5728\u65f6\u6587\u4ef6\u4e0d\u5b58\u5728\u65f6<\/tr>\n<tbody>\n<tr>\n<td>r<\/td>\n<td style=\"width:124px\">\u53ea\u8bfb\u6a21\u5f0f<\/td>\n<td style=\"width:272px\">\u6253\u5f00\u6587\u4ef6<\/td>\n<td>\u62a5\u9519 (FileNotFoundError)<\/td>\n<\/tr>\n<tr>\n<td>w<\/td>\n<td style=\"width:124px\">\u5199\u5165\u6a21\u5f0f<\/td>\n<td style=\"width:272px\">\u6e05\u7a7a\u6587\u4ef6\u5185\u5bb9<\/td>\n<td>\u521b\u5efa\u65b0\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>a<\/td>\n<td style=\"width:124px\">\u8ffd\u52a0\u6a21\u5f0f<\/td>\n<td style=\"width:272px\">\u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u5185\u5bb9<\/td>\n<td>\u521b\u5efa\u65b0\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>r&#043;<\/td>\n<td style=\"width:124px\">\u8bfb\u5199\u6a21\u5f0f<\/td>\n<td style=\"width:272px\">\u6253\u5f00\u6587\u4ef6&#xff0c;\u53ef\u8bfb\u5199<\/td>\n<td>\u62a5\u9519 (FileNotFoundError)<\/td>\n<\/tr>\n<tr>\n<td>w&#043;<\/td>\n<td style=\"width:124px\">\u8bfb\u5199\u6a21\u5f0f<\/td>\n<td style=\"width:272px\">\u6e05\u7a7a\u6587\u4ef6\u5185\u5bb9&#xff0c;\u53ef\u8bfb\u5199<\/td>\n<td>\u521b\u5efa\u65b0\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>a&#043;<\/td>\n<td style=\"width:124px\">\u8bfb\u5199\u6a21\u5f0f<\/td>\n<td style=\"width:272px\">\u5728\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u5185\u5bb9&#xff0c;\u53ef\u8bfb\u5199<\/td>\n<td>\u521b\u5efa\u65b0\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>x<\/td>\n<td style=\"width:124px\">\u72ec\u5360\u521b\u5efa\u6a21\u5f0f<\/td>\n<td style=\"width:272px\">\u62a5\u9519 (FileExistsError)<\/td>\n<td>\u521b\u5efa\u65b0\u6587\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e8c\u8fdb\u5236\u6587\u4ef6\u6a21\u5f0f<\/p>\n<p>\u5728\u6a21\u5f0f\u540e\u52a0\u00a0b\u00a0\u8868\u793a\u4ee5\u4e8c\u8fdb\u5236\u65b9\u5f0f\u64cd\u4f5c\u6587\u4ef6&#xff08;\u5982\u00a0rb,\u00a0wb,\u00a0ab\u00a0\u7b49&#xff09;\u3002\u4f8b\u5982&#xff1a;<\/p>\n<ul>\n<li>rb&#xff1a;\u4e8c\u8fdb\u5236\u53ea\u8bfb\u6a21\u5f0f<\/li>\n<li>wb&#xff1a;\u4e8c\u8fdb\u5236\u5199\u5165\u6a21\u5f0f<\/li>\n<li>ab&#xff1a;\u4e8c\u8fdb\u5236\u8ffd\u52a0\u6a21\u5f0f<\/li>\n<\/ul>\n<p>\u5176\u4ed6\u52a0b\u7684\u60c5\u51b5\u90fd\u662f\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u64cd\u4f5c\u6a21\u5f0f&#xff0c;\u4ee5\u4e0b\u7565\u3002<\/p>\n<h4>2.&#xff09;fclose<\/h4>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"86\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102458-6899c4fa3065e.png\" width=\"472\" \/><\/p>\n<p>fclose\u6bd4\u8f83\u7b80\u5355&#xff0c;\u4e00\u4e2a\u53c2\u6570\u5c31\u662f\u6307\u5411\u8981\u5173\u95ed\u7684\u6587\u4ef6\u7684\u6307\u9488\u3002<\/p>\n<h2>7.\u6587\u4ef6\u7684\u987a\u5e8f\u8bfb\u5199<\/h2>\n<h3>7.1\u6587\u4ef6\u7684\u987a\u5e8f\u8bfb\u5199\u51fd\u6570&#xff1a;<\/h3>\n<table>\n<tr>\u51fd\u6570\u540d\u529f\u80fd\u63cf\u8ff0\u793a\u4f8b\u4ee3\u7801\u7247\u6bb5<\/tr>\n<tbody>\n<tr>\n<td>fopen()<\/td>\n<td>\u6253\u5f00\u6587\u4ef6<\/td>\n<td>FILE *fp &#061; fopen(&#034;file.txt&#034;, &#034;r&#034;);<\/td>\n<\/tr>\n<tr>\n<td>fclose()<\/td>\n<td>\u5173\u95ed\u6587\u4ef6<\/td>\n<td>fclose(fp);<\/td>\n<\/tr>\n<tr>\n<td>fgetc()<\/td>\n<td>\u8bfb\u53d6\u5355\u4e2a\u5b57\u7b26<\/td>\n<td>char ch &#061; fgetc(fp);<\/td>\n<\/tr>\n<tr>\n<td>fputc()<\/td>\n<td>\u5199\u5165\u5355\u4e2a\u5b57\u7b26<\/td>\n<td>fputc(&#039;A&#039;, fp);<\/td>\n<\/tr>\n<tr>\n<td>fgets()<\/td>\n<td>\u8bfb\u53d6\u5b57\u7b26\u4e32&#xff08;\u884c&#xff09;<\/td>\n<td>fgets(buffer, 100, fp);<\/td>\n<\/tr>\n<tr>\n<td>fputs()<\/td>\n<td>\u5199\u5165\u5b57\u7b26\u4e32<\/td>\n<td>fputs(&#034;Hello&#034;, fp);<\/td>\n<\/tr>\n<tr>\n<td>fscanf()<\/td>\n<td>\u683c\u5f0f\u5316\u8bfb\u53d6<\/td>\n<td>fscanf(fp, &#034;%d&#034;, &amp;num);<\/td>\n<\/tr>\n<tr>\n<td>fprintf()<\/td>\n<td>\u683c\u5f0f\u5316\u5199\u5165<\/td>\n<td>fprintf(fp, &#034;Value: %d&#034;, num);<\/td>\n<\/tr>\n<tr>\n<td>feof()<\/td>\n<td>\u68c0\u6d4b\u6587\u4ef6\u7ed3\u675f<\/td>\n<td>while(!feof(fp)){&#8230;}<\/td>\n<\/tr>\n<tr>\n<td>rewind()<\/td>\n<td>\u91cd\u7f6e\u6587\u4ef6\u6307\u9488\u5230\u5f00\u5934<\/td>\n<td>rewind(fp);<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>7.2 \u6839\u636e\u4e0a\u9762\u7684\u51fd\u6570\u4ee5\u53ca\u6587\u4ef6\u7684\u6253\u5f00\u6a21\u5f0f&#xff0c;\u6709\u4e0b\u5217\u7684\u5b9e\u4f8b\u53ef\u4f9b\u53c2\u8003&#xff1a;<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"398\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102458-6899c4fa4e227.png\" width=\"671\" \/><\/p>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u6211\u4eec\u53ef\u4ee5\u770b\u5230&#xff0c;\u5b83\u901a\u8fc7fopen\u51fd\u6570\u7528\u2018w\u2019\u5199\u5165\u6a21\u5f0f\u6253\u5f00\u76ee\u6807\u6587\u4ef6&#xff0c;\u7136\u540e\u4f7f\u7528fputs\u51fd\u6570\u5c06\u4e00\u4e32\u5b57\u7b26\u5199\u5165\u5230\u4e86\u6211\u4eec\u7684myfile.txt\u6587\u4ef6\u4e2d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"610\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102458-6899c4fabc895.png\" width=\"1059\" \/><\/p>\n<p>\u7136\u540e&#xff0c;\u6211\u4eec\u66f4\u6539\u6253\u5f00\u6a21\u5f0f\u4e3a\u2018r&#039;\u53ea\u8bfb\u6a21\u5f0f&#xff0c;\u901a\u8fc7fgets\u51fd\u6570\u5c06myfile.txt\u6587\u4ef6\u4e2d\u7684\u5b57\u7b26\u4e32\u8bfb\u53d6\u5230\u5b57\u7b26\u4e32\u6570\u7ec4arr\u4e2d&#xff0c;\u5e76\u5c06\u5176\u6253\u5370\u3002<\/p>\n<h3>7.3 \u5404\u79cdscanf\u3001printf\u7684\u5bf9\u6bd4<\/h3>\n<h4>1.)SCANF<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"509\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102459-6899c4fb68a15.png\" width=\"1187\" \/><\/p>\n<h5>1.1&#xff09;fcanf<\/h5>\n<p>fscanf\u00a0\u662f C \u8bed\u8a00\u4e2d\u7528\u4e8e\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u683c\u5f0f\u5316\u8f93\u5165\u7684\u51fd\u6570&#xff0c;\u7c7b\u4f3c\u4e8e\u00a0scanf&#xff0c;\u4f46\u64cd\u4f5c\u5bf9\u8c61\u662f\u6587\u4ef6\u6d41\u800c\u975e\u6807\u51c6\u8f93\u5165\u3002\u51fd\u6570\u539f\u578b\u5982\u4e0b&#xff1a;<\/p>\n<p>int fscanf(FILE *stream, const char *format, &#8230;);<\/p>\n<p>\u53c2\u6570&#xff1a;<\/p>\n<ul>\n<li>stream&#xff1a;\u6307\u5411\u6587\u4ef6\u6d41\u7684\u6307\u9488&#xff08;\u901a\u8fc7\u00a0fopen\u00a0\u6253\u5f00&#xff09;\u3002<\/li>\n<li>format&#xff1a;\u683c\u5f0f\u5316\u5b57\u7b26\u4e32&#xff0c;\u6307\u5b9a\u8f93\u5165\u6570\u636e\u7684\u89e3\u6790\u65b9\u5f0f\u3002<\/li>\n<li>&#8230;&#xff1a;\u53ef\u53d8\u53c2\u6570&#xff0c;\u7528\u4e8e\u5b58\u50a8\u8bfb\u53d6\u7684\u6570\u636e&#xff08;\u9700\u4e3a\u53d8\u91cf\u5730\u5740&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u57fa\u672c\u7528\u6cd5\u5982\u4e0b&#xff1a;<\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"625\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102500-6899c4fc2f3de.png\" width=\"915\" \/><\/p>\n<h5>1.2&#xff09;sscanf<\/h5>\n<p>sscanf\u00a0\u662f C \u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u51fd\u6570&#xff0c;\u7528\u4e8e\u4ece\u5b57\u7b26\u4e32\u4e2d\u6309\u7167\u6307\u5b9a\u683c\u5f0f\u8bfb\u53d6\u6570\u636e\u3002\u5176\u529f\u80fd\u7c7b\u4f3c\u4e8e\u00a0scanf&#xff0c;\u4f46\u8f93\u5165\u6e90\u662f\u5b57\u7b26\u4e32\u800c\u975e\u6807\u51c6\u8f93\u5165\u3002\u51fd\u6570\u539f\u578b\u5982\u4e0b&#xff1a;<\/p>\n<p>int sscanf(const char *str, const char *format, &#8230;);<\/p>\n<ul>\n<li>str&#xff1a;\u5f85\u89e3\u6790\u7684\u8f93\u5165\u5b57\u7b26\u4e32\u3002<\/li>\n<li>format&#xff1a;\u683c\u5f0f\u63a7\u5236\u5b57\u7b26\u4e32&#xff0c;\u6307\u5b9a\u5982\u4f55\u89e3\u6790\u8f93\u5165\u3002<\/li>\n<li>&#8230;&#xff1a;\u53ef\u53d8\u53c2\u6570&#xff0c;\u7528\u4e8e\u5b58\u50a8\u89e3\u6790\u7ed3\u679c\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u662f\u57fa\u672c\u7528\u6cd5&#xff1a;<\/p>\n<\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>int main() {<br \/>\n    const char *str &#061; &#034;42 3.14&#034;;<br \/>\n    int num;<br \/>\n    float pi;<\/p>\n<p>    int result &#061; sscanf(str, &#034;%d %f&#034;, &amp;num, &amp;pi);<br \/>\n    printf(&#034;Parsed %d values: %d, %.2f\\\\n&#034;, result, num, pi);<br \/>\n    return 0;<br \/>\n}<\/p>\n<h4>2.)PRINTF<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"508\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102501-6899c4fd1b9cd.png\" width=\"1160\" \/><\/p>\n<h5>2.1&#xff09;fprintf<\/h5>\n<p>fprintf\u00a0\u662f C \u8bed\u8a00\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u51fd\u6570&#xff0c;\u7528\u4e8e\u5c06\u683c\u5f0f\u5316\u8f93\u51fa\u5199\u5165\u6587\u4ef6\u6d41\u3002\u5176\u529f\u80fd\u7c7b\u4f3c\u4e8e\u00a0printf&#xff0c;\u4f46\u00a0printf\u00a0\u9ed8\u8ba4\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa&#xff08;\u901a\u5e38\u662f\u5c4f\u5e55&#xff09;&#xff0c;\u800c\u00a0fprintf\u00a0\u53ef\u4ee5\u6307\u5b9a\u8f93\u51fa\u5230\u4efb\u610f\u6587\u4ef6\u6d41&#xff08;\u5982\u6587\u4ef6\u3001\u6807\u51c6\u9519\u8bef\u7b49&#xff09;\u3002\u51fd\u6570\u539f\u578b\u5982\u4e0b&#xff1a;<\/p>\n<p>int fprintf(FILE *stream, const char *format, &#8230;);<\/p>\n<p>\u53c2\u6570&#xff1a;<\/p>\n<ul>\n<li>stream&#xff1a;\u6307\u5411\u6587\u4ef6\u6d41\u7684\u6307\u9488&#xff0c;\u53ef\u4ee5\u662f\u00a0stdout\u3001stderr\u00a0\u6216\u901a\u8fc7\u00a0fopen\u00a0\u6253\u5f00\u7684\u6587\u4ef6\u3002<\/li>\n<li>format&#xff1a;\u683c\u5f0f\u5b57\u7b26\u4e32&#xff0c;\u6307\u5b9a\u8f93\u51fa\u7684\u683c\u5f0f\u3002<\/li>\n<li>&#8230;&#xff1a;\u53ef\u53d8\u53c2\u6570&#xff0c;\u6839\u636e\u683c\u5f0f\u5b57\u7b26\u4e32\u7684\u8981\u6c42\u63d0\u4f9b\u76f8\u5e94\u7684\u53d8\u91cf\u3002<\/li>\n<\/ul>\n<p>\u57fa\u672c\u7528\u6cd5\u5982\u4e0b&#xff1a;<\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"613\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102501-6899c4fdc238f.png\" width=\"1307\" \/><\/p>\n<\/p>\n<h5>2.2&#xff09;sprintf<\/h5>\n<p>sprintf\u00a0\u662f\u4e00\u4e2a\u5728\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u4e2d\u7528\u4e8e\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7684\u51fd\u6570,\u00a0printf\u00a0\u51fd\u6570\u7528\u4e8e\u5c06\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa&#xff08;\u5982\u5c4f\u5e55&#xff09;&#xff0c;\u800c\u00a0sprintf\u00a0\u5219\u662f\u5c06\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5199\u5165\u4e00\u4e2a\u5b57\u7b26\u6570\u7ec4&#xff08;\u5b57\u7b26\u4e32&#xff09;\u4e2d&#xff0c;\u800c\u4e0d\u662f\u76f4\u63a5\u8f93\u51fa\u3002\u5b83\u8fd4\u56de\u5199\u5165\u7684\u5b57\u7b26\u6570&#xff08;\u4e0d\u5305\u62ec\u7ed3\u5c3e\u7684\u7a7a\u5b57\u7b26&#xff09;\u3002\u51fd\u6570\u539f\u578b\u5982\u4e0b&#xff1a;<\/p>\n<p>int sprintf(char *str, const char *format, &#8230;);<\/p>\n<p>\u53c2\u6570&#xff1a;<\/p>\n<ul>\n<li>str&#xff1a;\u76ee\u6807\u5b57\u7b26\u6570\u7ec4&#xff0c;\u7528\u4e8e\u5b58\u50a8\u683c\u5f0f\u5316\u540e\u7684\u5b57\u7b26\u4e32\u3002<\/li>\n<li>format&#xff1a;\u683c\u5f0f\u5316\u5b57\u7b26\u4e32&#xff0c;\u5305\u542b\u666e\u901a\u5b57\u7b26\u548c\u683c\u5f0f\u8bf4\u660e\u7b26&#xff08;\u5982\u00a0%d\u3001%f&#xff09;\u3002<\/li>\n<li>&#8230;&#xff1a;\u53ef\u53d8\u53c2\u6570&#xff0c;\u6839\u636e\u00a0format\u00a0\u4e2d\u7684\u683c\u5f0f\u8bf4\u660e\u7b26\u586b\u5165\u3002<\/li>\n<\/ul>\n<p>\u57fa\u672c\u7528\u6cd5\u5982\u4e0b&#xff1a;<\/p>\n<\/p>\n<p>#include &lt;stdio.h&gt;<br \/>\nint main() {<br \/>\n    char buffer[50];<br \/>\n    int num &#061; 123;<br \/>\n    float pi &#061; 3.14;<\/p>\n<p>    \/\/ \u683c\u5f0f\u5316\u6574\u6570\u548c\u6d6e\u70b9\u6570<br \/>\n    sprintf(buffer, &#034;Number: %d, Pi: %.2f&#034;, num, pi);<br \/>\n    printf(&#034;%s\\\\n&#034;, buffer); \/\/ \u8f93\u51fa: &#034;Number: 123, Pi: 3.14&#034;<\/p>\n<p>    return 0;<br \/>\n}<\/p>\n<h2>8.\u6587\u4ef6\u7684\u968f\u673a\u8bfb\u5199<\/h2>\n<p>\u6709\u987a\u5e8f\u8bfb\u5199&#xff0c;\u5c31\u8981\u6709\u968f\u673a\u8bfb\u5199\u3002\u968f\u673a\u8bfb\u5199\u8ba9\u6211\u4eec\u5bf9\u6587\u4ef6\u7684\u8f93\u5165\u8f93\u51fa\u6709\u4e86\u66f4\u7075\u6d3b\u7684\u65b9\u5f0f\u3002<\/p>\n<h3>8.1 fseek<\/h3>\n<p>\u6839\u636e\u6587\u4ef6\u6307\u9488\u7684\u4f4d\u7f6e\u548c\u504f\u79fb\u91cf\u6765\u5b9a\u4f4d\u6587\u4ef6\u6307\u9488\u3002<\/p>\n<p>int fseek ( FILE * stream, long int offset, int origin );<\/p>\n<h4>1.)fseek\u7684\u7b2c\u4e09\u4e2a\u53c2\u6570<\/h4>\n<p>fseek\u51fd\u6570\u7684\u7b2c\u4e09\u4e2a\u53c2\u6570\u7528\u4e8e\u6307\u5b9a\u504f\u79fb\u91cf\u7684\u53c2\u8003\u4f4d\u7f6e&#xff0c;\u5373\u4ece\u6587\u4ef6\u7684\u54ea\u4e2a\u4f4d\u7f6e\u5f00\u59cb\u8ba1\u7b97\u504f\u79fb\u91cf\u3002\u8be5\u53c2\u6570\u901a\u5e38\u662f\u4e00\u4e2a\u9884\u5b9a\u4e49\u7684\u5e38\u91cf&#xff0c;\u5177\u4f53\u5982\u4e0b:<\/p>\n<p>SEEK_SET<br \/>\n\u8868\u793a\u4ece\u6587\u4ef6\u5f00\u5934\u5f00\u59cb\u8ba1\u7b97\u504f\u79fb\u91cf\u3002\u4f8b\u5982&#xff0c;fseek(fp, 10, SEEK_SET)\u5c06\u6587\u4ef6\u6307\u9488\u79fb\u52a8\u5230\u8ddd\u79bb\u6587\u4ef6\u5f00\u593410\u5b57\u8282\u7684\u4f4d\u7f6e\u3002<\/p>\n<p>SEEK_CUR<br \/>\n\u8868\u793a\u4ece\u5f53\u524d\u6587\u4ef6\u6307\u9488\u4f4d\u7f6e\u5f00\u59cb\u8ba1\u7b97\u504f\u79fb\u91cf\u3002\u4f8b\u5982&#xff0c;fseek(fp, 5, SEEK_CUR)\u5c06\u6587\u4ef6\u6307\u9488\u4ece\u5f53\u524d\u4f4d\u7f6e\u5411\u540e\u79fb\u52a85\u5b57\u8282\u3002<\/p>\n<p>SEEK_END<br \/>\n\u8868\u793a\u4ece\u6587\u4ef6\u672b\u5c3e\u5f00\u59cb\u8ba1\u7b97\u504f\u79fb\u91cf\u3002\u4f8b\u5982&#xff0c;fseek(fp, -3, SEEK_END)\u5c06\u6587\u4ef6\u6307\u9488\u79fb\u52a8\u5230\u8ddd\u79bb\u6587\u4ef6\u672b\u5c3e3\u5b57\u8282\u7684\u4f4d\u7f6e\u3002<\/p>\n<h4>2.&#xff09;\u4f7f\u7528\u6848\u4f8b&#xff1a;<\/h4>\n<p>int main()<br \/>\n{<br \/>\nFILE* pFile;<br \/>\npFile &#061; fopen(&#034;myfile.txt&#034;, &#034;w&#034;);<br \/>\n if (pFile &#061;&#061; NULL)<br \/>\n{<br \/>\nperror(&#034;fopen&#034;);<br \/>\nreturn 1;<br \/>\n}<br \/>\nfputs(&#034;This is an apple.&#034;, pFile);<br \/>\nfseek(pFile, 9, SEEK_SET);<br \/>\nfputs(&#034; sam&#034;, pFile);<br \/>\nfclose(pFile);<br \/>\nreturn 0;<br \/>\n}<\/p>\n<p>\u6700\u540e\u7684\u7ed3\u679c\u5c31\u662f&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"65\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102502-6899c4fee02e5.png\" width=\"264\" \/><\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u770b\u5230fseek\u51fd\u6570\u5c06\u6307\u9488\u7684\u4f4d\u7f6e\u653e\u5230\u4e86\u539f\u5b57\u7b26\u4e32\u7684\u7b2c\u4e5d\u4f4d&#xff0c;\u7136\u540e\u8fdb\u884c\u4fee\u6539&#xff0c;\u5c31\u53d8\u6210\u4e86\u201cThis is a sample&#034;.<\/p>\n<h3>8.2 ftell<\/h3>\n<p>\u8fd4\u56de\u6587\u4ef6\u6307\u9488\u76f8\u5bf9\u4e8e\u8d77\u59cb\u4f4d\u7f6e\u7684\u504f\u79fb\u91cf<\/p>\n<p>long int ftell ( FILE * stream );<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u5c06ftell\u51fd\u6570\u4e0efseek\u51fd\u6570\u642d\u914d\u4f7f\u7528&#xff0c;\u4e3e\u4f8b\u5982\u4e0b&#xff1a;<\/p>\n<p>#include&lt;stdio.h&gt;<br \/>\nint main()<br \/>\n{<br \/>\nFILE* pFile;<br \/>\nlong size;<br \/>\npFile &#061; fopen(&#034;myfile.txt&#034;, &#034;rb&#034;);<br \/>\nif (pFile &#061;&#061; NULL)<br \/>\nperror(&#034;Error opening file&#034;);<br \/>\nelse<br \/>\n{<br \/>\nfseek(pFile, 0, SEEK_END);<br \/>\nsize &#061; ftell(pFile);<br \/>\nfclose(pFile);<br \/>\nprintf(&#034;Size of myfile.txt: %ld bytes.\\\\n&#034;, size);<br \/>\n}<br \/>\nreturn 0;<br \/>\n}<\/p>\n<h3>8.3 rewind<\/h3>\n<p>rewind\u51fd\u6570\u7528\u4e8e\u5c06\u6587\u4ef6\u6307\u9488\u91cd\u7f6e\u5230\u6587\u4ef6\u7684\u5f00\u5934\u4f4d\u7f6e&#xff0c;\u540c\u65f6\u6e05\u9664\u6587\u4ef6\u6d41\u7684\u9519\u8bef\u6807\u5fd7\u3002\u5b83\u5e38\u7528\u4e8e\u9700\u8981\u91cd\u590d\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u7684\u573a\u666f&#xff0c;\u65e0\u9700\u5173\u95ed\u518d\u91cd\u65b0\u6253\u5f00\u6587\u4ef6\u3002<\/p>\n<p>void rewind(FILE *stream);<\/p>\n<p>\u5178\u578b\u7528\u6cd5\u5982\u4e0b&#xff1a;<\/p>\n<\/p>\n<p>FILE *file &#061; fopen(&#034;example.txt&#034;, &#034;r&#034;);<br \/>\nif (file &#061;&#061; NULL) {<br \/>\n    perror(&#034;\u6587\u4ef6\u6253\u5f00\u5931\u8d25&#034;);<br \/>\n    return 1;<br \/>\n}  <\/p>\n<p>\/\/ \u7b2c\u4e00\u6b21\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9<br \/>\nchar buffer[100];<br \/>\nfgets(buffer, sizeof(buffer), file);<br \/>\nprintf(&#034;\u7b2c\u4e00\u6b21\u8bfb\u53d6: %s&#034;, buffer);  <\/p>\n<p>\/\/ \u91cd\u7f6e\u6587\u4ef6\u6307\u9488\u5230\u5f00\u5934<br \/>\nrewind(file);  <\/p>\n<p>\/\/ \u7b2c\u4e8c\u6b21\u8bfb\u53d6\u76f8\u540c\u5185\u5bb9<br \/>\nfgets(buffer, sizeof(buffer), file);<br \/>\nprintf(&#034;\u7b2c\u4e8c\u6b21\u8bfb\u53d6: %s&#034;, buffer);  <\/p>\n<p>fclose(file);  <\/p>\n<h2>9. \u6587\u4ef6\u8bfb\u53d6\u7ed3\u675f\u5224\u5b9a<\/h2>\n<p>1.feof \u7684\u4f5c\u7528<\/p>\n<p>\u5f53\u6587\u4ef6\u8bfb\u53d6\u7ed3\u675f\u7684\u65f6\u5019&#xff0c;\u5224\u65ad\u662f\u8bfb\u53d6\u7ed3\u675f\u7684\u539f\u56e0\u662f\u5426\u662f&#xff1a;\u9047\u5230\u6587\u4ef6\u5c3e\u7ed3\u675f\u3002\u56e0\u6b64&#xff0c;\u6211\u4eec\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528feof \u6765\u5224\u5b9a\u6587\u4ef6\u662f\u5426\u8bfb\u53d6\u7ed3\u675f\u3002\u6240\u4ee5\u6211\u4eec\u8fd8\u8981\u4f7f\u7528\u5176\u4ed6\u529e\u6cd5\u6765\u5224\u5b9a\u3002<\/p>\n<p>2. \u6587\u672c\u6587\u4ef6\u8bfb\u53d6\u662f\u5426\u7ed3\u675f&#xff0c;\u5224\u65ad\u8fd4\u56de\u503c\u662f\u5426\u4e3aEOF (fgetc),\u6216NULL&#xff08;fgets&#xff09;\u3002<\/p>\n<p>\u4f8b&#xff1a;<\/p>\n<p> #include &lt;stdio.h&gt;<br \/>\n #include &lt;stdlib.h&gt;<br \/>\n int main()<br \/>\n {<br \/>\n int c; \/\/ \u6ce8\u610f&#xff1a;int&#xff0c;\u2faechar&#xff0c;\u8981\u6c42\u5904\u7406EOF<br \/>\nFILE* fp &#061; fopen(&#034;test.txt&#034;, &#034;r&#034;);<br \/>\n if(fp&#061;&#061;NULL)<br \/>\n {<br \/>\n perror(&#034;File opening failed&#034;);<br \/>\n return 1;<br \/>\n }<br \/>\n \/\/fgetc \u5f53\u8bfb\u53d6\u5931\u8d25\u7684\u65f6\u5019\u6216\u8005\u9047\u5230\u2f42\u4ef6\u7ed3\u675f\u7684\u65f6\u5019&#xff0c;\u90fd\u4f1a\u8fd4\u56deEOF<br \/>\nwhile ((c &#061; fgetc(fp)) !&#061; EOF)<br \/>\n{<br \/>\nputchar(c);<br \/>\n}<br \/>\n\/\/\u5224\u65ad\u662f\u4ec0\u4e48\u539f\u56e0\u7ed3\u675f\u7684<br \/>\n if (ferror(fp))<br \/>\n puts(&#034;I\/O error when reading&#034;);<br \/>\n else if (feof(fp))<br \/>\n puts(&#034;End of file reached successfully&#034;);<br \/>\n fclose(fp);<br \/>\n }<\/p>\n<h2>10. \u6587\u4ef6\u7f13\u51b2\u533a<\/h2>\n<p>\u00a0 \u00a0 \u00a0 \u00a0ANSIC\u6807\u51c6\u91c7\u7528\u201c\u7f13\u51b2\u6587\u4ef6\u7cfb\u7edf\u201d\u5904\u7406\u7684\u6570\u636e\u6587\u4ef6\u7684&#xff0c;\u6240\u8c13\u7f13\u51b2\u6587\u4ef6\u7cfb\u7edf\u662f\u6307\u7cfb\u7edf\u81ea\u52a8\u5730\u5728\u5185\u5b58\u4e2d\u4e3a \u7a0b\u5e8f\u4e2d\u6bcf\u4e00\u4e2a\u6b63\u5728\u4f7f\u7528\u7684\u6587\u4ef6\u5f00\u8f9f\u4e00\u5757\u201c\u6587\u4ef6\u7f13\u51b2\u533a\u201d\u3002\u4ece\u5185\u5b58\u5411\u78c1\u76d8\u8f93\u51fa\u6570\u636e\u4f1a\u5148\u9001\u5230\u5185\u5b58\u4e2d\u7684\u7f13 \u51b2\u533a&#xff0c;\u88c5\u6ee1\u7f13\u51b2\u533a\u540e\u624d\u4e00\u8d77\u9001\u5230\u78c1\u76d8\u4e0a\u3002\u5982\u679c\u4ece\u78c1\u76d8\u5411\u8ba1\u7b97\u673a\u8bfb\u5165\u6570\u636e&#xff0c;\u5219\u4ece\u78c1\u76d8\u6587\u4ef6\u4e2d\u8bfb\u53d6\u6570\u636e\u8f93\u5165\u5230\u5185\u5b58\u7f13\u51b2\u533a&#xff08;\u5145\u6ee1\u7f13\u51b2\u533a&#xff09;&#xff0c;\u7136\u540e\u518d\u4ece\u7f13\u51b2\u533a\u9010\u4e2a\u5730\u5c06\u6570\u636e\u9001\u5230\u7a0b\u5e8f\u6570\u636e\u533a&#xff08;\u7a0b\u5e8f\u53d8\u91cf\u7b49&#xff09;\u3002\u7f13\u51b2\u533a\u7684\u5927\u5c0f\u6839\u636eC\u7f16\u8bd1\u7cfb\u7edf\u51b3\u5b9a\u7684\u3002\u529f\u80fd\u5927\u81f4\u5982\u4e0b\u56fe\u6240\u793a&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"443\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102503-6899c4ff0cb06.png\" width=\"1090\" \/><\/p>\n<h3>10.1 \u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul>\n<li>\u7a0b\u5e8f\u6b63\u5e38\u7ec8\u6b62\u6216\u6587\u4ef6\u5173\u95ed\u65f6&#xff0c;\u7f13\u51b2\u533a\u5185\u5bb9\u4f1a\u81ea\u52a8\u5237\u65b0\u3002<\/li>\n<li>\u7f13\u51b2\u533a\u672a\u5237\u65b0\u65f6\u7a0b\u5e8f\u5f02\u5e38\u9000\u51fa\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002<\/li>\n<li>\u9ed8\u8ba4\u7f13\u51b2\u6a21\u5f0f\u56e0\u7cfb\u7edf\u548c\u6587\u4ef6\u7c7b\u578b\u800c\u5f02\u3002<\/li>\n<\/ul>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb384\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf7\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u4ecb\u7ecd\u4e86\u8ba1\u7b97\u673a\u6587\u4ef6\u7684\u57fa\u672c\u6982\u5ff5\u4e0e\u64cd\u4f5c\u539f\u7406\u3002\u6587\u4ef6\u662f\u5b58\u50a8\u5728\u6570\u5b57\u8bbe\u5907\u4e2d\u7684\u4fe1\u606f\u96c6\u5408\uff0c\u901a\u8fc7\u6587\u4ef6\u540d\u548c\u6269\u5c55\u540d\u6807\u8bc6\uff0c\u53ef\u5206\u4e3a\u7a0b\u5e8f\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u4e24\u7c7b\u3002\u6587\u7ae0\u8be6\u7ec6\u9610\u8ff0\u4e86\u6587\u4ef6\u7684\u7ec4\u6210\u8981\u7d20\u3001\u7ba1\u7406\u65b9\u5f0f\u3001\u4e8c\u8fdb\u5236\u4e0e\u6587\u672c\u6587\u4ef6\u7684\u533a\u522b\uff0c\u4ee5\u53caC\u8bed\u8a00\u4e2d\u7684\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570\uff08\u5982fopen\u3001fclose\u3001fseek\u7b49\uff09\u3002\u91cd\u70b9\u8bb2\u89e3\u4e86\u6587\u4ef6\u6307\u9488\u7684\u4f7f\u7528\u3001\u987a\u5e8f\u8bfb\u5199\u4e0e\u968f\u673a\u8bfb\u5199\u65b9\u6cd5\u3001\u6587\u4ef6\u7ed3\u675f\u5224\u5b9a\u6807\u51c6\uff0c\u4ee5\u53ca\u6587\u4ef6\u7f13\u51b2\u533a\u7684\u5de5\u4f5c\u539f\u7406\u3002\u901a\u8fc7\u4e30\u5bcc\u7684\u4ee3\u7801\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5bf9\u6587\u4ef6\u8fdb\u884c\u6253\u5f00\u3001\u8bfb\u5199\u3001\u5b9a\u4f4d\u548c\u5173\u95ed\u7b49\u64cd\u4f5c\uff0c\u4e3a\u7a0b\u5e8f\u8bbe\u8ba1\u4e2d\u7684\u6587\u4ef6\u5904\u7406\u63d0\u4f9b\u4e86\u5b9e\u7528\u6307\u5bfc\u3002<\/p>\n","protected":false},"author":2,"featured_media":52736,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,174,190],"topic":[],"class_list":{"0":"post-52748","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-c","10":"tag-190"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6587\u4ef6\u64cd\u4f5c\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/52748.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6587\u4ef6\u64cd\u4f5c\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb384\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf7\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u4ecb\u7ecd\u4e86\u8ba1\u7b97\u673a\u6587\u4ef6\u7684\u57fa\u672c\u6982\u5ff5\u4e0e\u64cd\u4f5c\u539f\u7406\u3002\u6587\u4ef6\u662f\u5b58\u50a8\u5728\u6570\u5b57\u8bbe\u5907\u4e2d\u7684\u4fe1\u606f\u96c6\u5408\uff0c\u901a\u8fc7\u6587\u4ef6\u540d\u548c\u6269\u5c55\u540d\u6807\u8bc6\uff0c\u53ef\u5206\u4e3a\u7a0b\u5e8f\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u4e24\u7c7b\u3002\u6587\u7ae0\u8be6\u7ec6\u9610\u8ff0\u4e86\u6587\u4ef6\u7684\u7ec4\u6210\u8981\u7d20\u3001\u7ba1\u7406\u65b9\u5f0f\u3001\u4e8c\u8fdb\u5236\u4e0e\u6587\u672c\u6587\u4ef6\u7684\u533a\u522b\uff0c\u4ee5\u53caC\u8bed\u8a00\u4e2d\u7684\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570\uff08\u5982fopen\u3001fclose\u3001fseek\u7b49\uff09\u3002\u91cd\u70b9\u8bb2\u89e3\u4e86\u6587\u4ef6\u6307\u9488\u7684\u4f7f\u7528\u3001\u987a\u5e8f\u8bfb\u5199\u4e0e\u968f\u673a\u8bfb\u5199\u65b9\u6cd5\u3001\u6587\u4ef6\u7ed3\u675f\u5224\u5b9a\u6807\u51c6\uff0c\u4ee5\u53ca\u6587\u4ef6\u7f13\u51b2\u533a\u7684\u5de5\u4f5c\u539f\u7406\u3002\u901a\u8fc7\u4e30\u5bcc\u7684\u4ee3\u7801\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5bf9\u6587\u4ef6\u8fdb\u884c\u6253\u5f00\u3001\u8bfb\u5199\u3001\u5b9a\u4f4d\u548c\u5173\u95ed\u7b49\u64cd\u4f5c\uff0c\u4e3a\u7a0b\u5e8f\u8bbe\u8ba1\u4e2d\u7684\u6587\u4ef6\u5904\u7406\u63d0\u4f9b\u4e86\u5b9e\u7528\u6307\u5bfc\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/52748.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T10:25:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102457-6899c4f92dc6f.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52748.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/52748.html\",\"name\":\"\u6587\u4ef6\u64cd\u4f5c\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-11T10:25:05+00:00\",\"dateModified\":\"2025-08-11T10:25:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/52748.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/52748.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52748.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6587\u4ef6\u64cd\u4f5c\u8be6\u89e3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6587\u4ef6\u64cd\u4f5c\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/52748.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6587\u4ef6\u64cd\u4f5c\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb384\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf7\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u4ecb\u7ecd\u4e86\u8ba1\u7b97\u673a\u6587\u4ef6\u7684\u57fa\u672c\u6982\u5ff5\u4e0e\u64cd\u4f5c\u539f\u7406\u3002\u6587\u4ef6\u662f\u5b58\u50a8\u5728\u6570\u5b57\u8bbe\u5907\u4e2d\u7684\u4fe1\u606f\u96c6\u5408\uff0c\u901a\u8fc7\u6587\u4ef6\u540d\u548c\u6269\u5c55\u540d\u6807\u8bc6\uff0c\u53ef\u5206\u4e3a\u7a0b\u5e8f\u6587\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u4e24\u7c7b\u3002\u6587\u7ae0\u8be6\u7ec6\u9610\u8ff0\u4e86\u6587\u4ef6\u7684\u7ec4\u6210\u8981\u7d20\u3001\u7ba1\u7406\u65b9\u5f0f\u3001\u4e8c\u8fdb\u5236\u4e0e\u6587\u672c\u6587\u4ef6\u7684\u533a\u522b\uff0c\u4ee5\u53caC\u8bed\u8a00\u4e2d\u7684\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570\uff08\u5982fopen\u3001fclose\u3001fseek\u7b49\uff09\u3002\u91cd\u70b9\u8bb2\u89e3\u4e86\u6587\u4ef6\u6307\u9488\u7684\u4f7f\u7528\u3001\u987a\u5e8f\u8bfb\u5199\u4e0e\u968f\u673a\u8bfb\u5199\u65b9\u6cd5\u3001\u6587\u4ef6\u7ed3\u675f\u5224\u5b9a\u6807\u51c6\uff0c\u4ee5\u53ca\u6587\u4ef6\u7f13\u51b2\u533a\u7684\u5de5\u4f5c\u539f\u7406\u3002\u901a\u8fc7\u4e30\u5bcc\u7684\u4ee3\u7801\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5bf9\u6587\u4ef6\u8fdb\u884c\u6253\u5f00\u3001\u8bfb\u5199\u3001\u5b9a\u4f4d\u548c\u5173\u95ed\u7b49\u64cd\u4f5c\uff0c\u4e3a\u7a0b\u5e8f\u8bbe\u8ba1\u4e2d\u7684\u6587\u4ef6\u5904\u7406\u63d0\u4f9b\u4e86\u5b9e\u7528\u6307\u5bfc\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/52748.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-11T10:25:05+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811102457-6899c4f92dc6f.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/52748.html","url":"https:\/\/www.wsisp.com\/helps\/52748.html","name":"\u6587\u4ef6\u64cd\u4f5c\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-11T10:25:05+00:00","dateModified":"2025-08-11T10:25:05+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/52748.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/52748.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/52748.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6587\u4ef6\u64cd\u4f5c\u8be6\u89e3"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=52748"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52748\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/52736"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=52748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=52748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=52748"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=52748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}