{"id":84208,"date":"2021-09-16T09:00:31","date_gmt":"2021-09-16T03:30:31","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=84208"},"modified":"2021-09-16T09:00:31","modified_gmt":"2021-09-16T03:30:31","slug":"cpp-file-handling","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/","title":{"rendered":"File Handling in C++"},"content":{"rendered":"<p>C++ programming language offers various useful and exciting features and functionalities to programmers. It also supports object-oriented programming. With the help of C++, you can also perform file handling. Files and streams are one of the most important and useful concepts in C++.<\/p>\n<p>Till now, we were using <strong>iostream<\/strong> which provides cin and cout methods for reading from input and writing to output respectively.<\/p>\n<h3>What is File Handling in C++?<\/h3>\n<p>With the help of Files, you can store data in a storage device permanently. Using File Handling, you can store the output of a program in a file and you can also perform various operations on it. You can say that a stream is an abstraction that represents a device in which input and output operations are performed.<\/p>\n<p>In C++, there are 3 file handling methods such as ifstream, ofstream and fstream. They are designed to manage the disk files. These are defined in fstream. That\u2019s why you have to include fstream whenever you are working with files in C++.<\/p>\n<p>Files are mainly handled by three classes in C++:-<\/p>\n<ul>\n<li><strong>ofstream:-<\/strong> Used to create files and write data into the files.<\/li>\n<li><strong>ifstream:<\/strong>&#8211; Used to read information from the file.<\/li>\n<li><strong>fstream<\/strong>:- Used to write data into file, read data from the file and also to create files.<\/li>\n<\/ul>\n<p>You can perform the below operations through File Handling:-<\/p>\n<ul>\n<li><strong>open():-<\/strong> Create a file<\/li>\n<li><strong>read():<\/strong>&#8211; Reading file.<\/li>\n<li><strong>write():<\/strong>&#8211; Writing new data.<\/li>\n<li><strong>close():<\/strong>&#8211; Closing a file.<\/li>\n<\/ul>\n<h3>Opening a file in C++<\/h3>\n<p>In C++, you can open a file using the following ways:-<\/p>\n<ul>\n<li>Bypass the file name in the constructor at the time of object creation.<\/li>\n<li>Then use the open() function.<\/li>\n<\/ul>\n<p>To open a file, use<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">open() function<\/pre>\n<p><strong>Syntax:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">void open(const char* NameFile,ios::openmode mode);\n<\/pre>\n<ul>\n<li>First argument of the open() function defines the name and the format of the file.<\/li>\n<li>Second argument describes the mode in which the file has to be opened.<\/li>\n<\/ul>\n<p>Following is the list of modes:-<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Modes<\/b><\/td>\n<td><b>What it does<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">in<\/span><\/td>\n<td><span style=\"font-weight: 400\">Used to open the file for reading<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">out<\/span><\/td>\n<td><span style=\"font-weight: 400\">Used to open the file for writing<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">binary<\/span><\/td>\n<td><span style=\"font-weight: 400\">Used to open the file in binary mode<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">app<\/span><\/td>\n<td><span style=\"font-weight: 400\">Used to append all the outputs at the end by opening the file<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">ate<\/span><\/td>\n<td><span style=\"font-weight: 400\">Used to move the control to the end of the file<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">trunc<\/span><\/td>\n<td><span style=\"font-weight: 400\">Used to remove the data<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">nocreate<\/span><\/td>\n<td><span style=\"font-weight: 400\">Used to open the file only if it exists<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">noreplace<\/span><\/td>\n<td><span style=\"font-weight: 400\">Used to open the file only if it does not exist<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Example:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">fstream exp;\nexp.open(\"Tech.txt\", ios::out);\n<\/pre>\n<p>In the above example, exp is an object of type fstream. As we said that fstream is a class so that\u2019s why we have to create an object of this class to use its member functions. We created an exp object and called the open() function.<br \/>\nDefault Open modes:-<\/p>\n<ul>\n<li>fstream ios::in<\/li>\n<li>ofstream ios::out<\/li>\n<li>fstream ios::in | ios::out<\/li>\n<\/ul>\n<p>You can also combine different modes using pipe(|) or or.<\/p>\n<p>With the help of stream insertion operator, you can write data to a file. And with the help of the stream extraction operator, you can read data from a file.<\/p>\n<p><strong>Example:- Using the open() function<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;iostream&gt;\n#include &lt;fstream&gt;\nusing namespace std;\nint main()\n{\nfstream exp;\nexp.open(\"Tech.txt\",ios::out);  \nif(!exp)\n{\ncout&lt;&lt;\"File Creation failed!\";\n}\nelse\n{\ncout&lt;&lt;\"Created a New File!\";\nexp.close();\n}\nreturn 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">Created a New File!<\/div>\n<p>In the above, we created an object of the class fstream named exp. Then we apply the open() function on the created object. We used the if and else statement. If the file already exists or if it does not exist then it will print \u201cFile Creation failed!\u201d. Otherwise, it will create a new file named and it will print \u201cCreated a New File!\u201d to the screen.<\/p>\n<h3>Writing to a file in C++<\/h3>\n<p>You can also write data into a file in C++. Using stream insertion operator(&lt;&lt;), you can write data into a file in C++.<\/p>\n<p><strong>Example:- writing to a file<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;iostream&gt;\n#include &lt;fstream&gt;\nusing namespace std;\nint main()\n{\nfstream exp;\nexp.open(\"Tech.txt\",ios::out);  \nif(!exp)\n{\ncout&lt;&lt;\"File creation failed!\";\n}\nelse\n{\ncout&lt;&lt;\"Created a new file!\";\nexp&lt;&lt;\"TechVidvan Tutorial: C++ File Handling!\";    \nexp.close();\n}   \nreturn 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>Created a new file!<\/p>\n<p>Name of the file:- Tech.txt<br \/>\nContents:- TechVidvan Tutorial: C++ File Handling!<\/p>\n<\/div>\n<p>In the above example, we created a new file named Tech.txt. We used the stream insertion operator(\u201c&lt;&lt;\u201d) to put data into that file. And the data is \u201cTechVidvan Tutorial: C++ File Handling!\u201d.<\/p>\n<h4>Reading from a file in C++<\/h4>\n<p>You can also read data from a file. Using the stream extraction operator(\u201c&gt;&gt;\u201d), you can read the contents of the file.<\/p>\n<p><strong>Example:- reading from a file<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;iostream&gt;\n#include &lt;fstream&gt;\nusing namespace std;\nint main()\n{\nfstream exp;\nexp.open(\"Tech.txt\",ios::in);   \nif(!exp)\ncout&lt;&lt;\"No such file\"; } else { char s; while (!exp.eof()) { exp &gt;&gt;s;\ncout &lt;&lt; s;   \n}\nexp.close();    \nreturn 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">TechVidvanTutorial:C++FileHandling!<\/div>\n<p>In the above example, we are reading the contents of the Tech.txt file using the stream extraction operator. If the file does not exist then it will print No such file to the screen. You can see there are no spaces in the output. To correct it, you can use getline() with a character array to print the whole line as it is.<\/p>\n<h3>Close a file in C++:-<\/h3>\n<p>You can use C++ close() function to close a file.<\/p>\n<p><strong>Syntax:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">File Pointer.close()\n<\/pre>\n<p><strong>Example:- Closing a file<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;iostream&gt;\n#include &lt;fstream&gt;\nusing namespace std;\nint main()\n{\nfstream exp;\nexp.open(\"Tech.txt\",ios::out);  \nexp.close();    \nreturn 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">The file will get closed.<\/div>\n<h3>Special Operations on a file in C++<\/h3>\n<p>Below are some special functions which you can use with file streams:-<\/p>\n<p><strong>1. tellp():<\/strong>&#8211; Used to tell the current position of the put pointer.<\/p>\n<p><strong>Syntax:-<\/strong><br \/>\nfilepointer.tellp()<\/p>\n<p><strong>2. tellg():<\/strong>&#8211; Used to tell the current position of the get pointer.<\/p>\n<p><strong>Syntax:-<\/strong><br \/>\nfilepointer.tellg()<\/p>\n<p><strong>3. seekp():<\/strong>&#8211; Used to move the put pointer to the mentioned location.<\/p>\n<p><strong>Syntax:-<\/strong><br \/>\nfilepointer.seekp(number_of_bytes,reference_mode)<\/p>\n<p><strong>4. seekg():<\/strong>&#8211; Used to move the get pointer(input) to a specified location.<\/p>\n<p><strong>Syntax:-<\/strong><br \/>\nfilepointer.seekg(number_of_bytes,reference_point)<\/p>\n<p><strong>5. put():-<\/strong> Used to write a single character to the file.<\/p>\n<p><strong>6. get():-<\/strong> Used to read a single character from the file.<\/p>\n<p><strong>Example:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;iostream&gt;\n#include&lt;conio&gt;\n#include &lt;fstream&gt;\n\nusing namespace std;\n\nint main()\n{\n  fstream exp;\n  exp.open(\"E:\\Tech.txt\",ios::out);\n  if(!exp)\n  {\n    \tcout&lt;&lt;\"File creation failed\";\n  }\n  else\n  {\n    \tcout&lt;&lt;\"New file created\"&lt;&lt;endl;\n    \texp&lt;&lt;\"TechVidvan Tutorial!\";\n    \tcout&lt;&lt;\"File Pointer Position: \"&lt;&lt;exp.tellp()&lt;&lt;endl;  \n   \t \n    \texp.seekp(-1, ios::cur);\n    \tcout&lt;&lt;\"tellp=&gt;File Pointer Position: \"&lt;&lt;exp.tellp()&lt;&lt;endl;\n   \t \n    \texp.close();\n  }\n  exp.open(\"E:\\Tech.txt\",ios::in);   \n  if(!exp)\n  {\n    \tcout&lt;&lt;\"No such file\";\n  }\n  else\n  {\n    \tchar s;\n    \texp.seekg(5, ios::beg);  \n    \tcout&lt;&lt;\"tellg=&gt;File Pointer Position: \"&lt;&lt;exp.tellg()&lt;&lt;endl;\n    \tcout&lt;&lt;endl;\n    \texp.seekg(1, ios::cur);\n    \tcout&lt;&lt;\"tellg=&gt;File Pointer Position: \"&lt;&lt;exp.tellg()&lt;&lt;endl; \/\n    \texp.close(); \/\/Closing file\n  }\n  getch();\n  return 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">New file created<br \/>\nFile Pointer Position: 20<br \/>\ntellp=&gt;File Pointer Position: 19<br \/>\ntellg=&gt;File Pointer Position: 5<br \/>\ntellg=&gt;File Pointer Position: 6<\/div>\n<h3>Summary<\/h3>\n<p>In this tutorial, we discussed what is file handling and file handling methods in C++. We discussed how you can perform operations such as reading, opening, writing, and closing a file in C++.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++ programming language offers various useful and exciting features and functionalities to programmers. It also supports object-oriented programming. With the help of C++, you can also perform file handling. Files and streams are one&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":84646,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3405],"tags":[4267,3799,4268,4269,4270],"class_list":["post-84208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpp","tag-close-file-in-c","tag-file-handling-in-c","tag-file-handling-methods-in-c","tag-open-file-in-c","tag-write-file-in-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>File Handling in C++ - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn what is file handling &amp; file handling methods in C++. Learn to perform operations like reading, opening, writing &amp; closing a file in C++\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"File Handling in C++ - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn what is file handling &amp; file handling methods in C++. Learn to perform operations like reading, opening, writing &amp; closing a file in C++\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-16T03:30:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/C-Files-and-Streams.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"File Handling in C++ - TechVidvan","description":"Learn what is file handling & file handling methods in C++. Learn to perform operations like reading, opening, writing & closing a file in C++","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:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/","og_locale":"en_US","og_type":"article","og_title":"File Handling in C++ - TechVidvan","og_description":"Learn what is file handling & file handling methods in C++. Learn to perform operations like reading, opening, writing & closing a file in C++","og_url":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-09-16T03:30:31+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/C-Files-and-Streams.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"File Handling in C++","datePublished":"2021-09-16T03:30:31+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/"},"wordCount":997,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/C-Files-and-Streams.jpg","keywords":["Close file in C++","File Handling in C","File Handling Methods in C++","Open file in C++","Write file in C++"],"articleSection":["C++ Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/","url":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/","name":"File Handling in C++ - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/C-Files-and-Streams.jpg","datePublished":"2021-09-16T03:30:31+00:00","description":"Learn what is file handling & file handling methods in C++. Learn to perform operations like reading, opening, writing & closing a file in C++","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/C-Files-and-Streams.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/C-Files-and-Streams.jpg","width":1200,"height":628,"caption":"File Handling in C++"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/cpp-file-handling\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"File Handling in C++"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/84208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=84208"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/84208\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/84646"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=84208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=84208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=84208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}