{"id":5921,"date":"2022-08-31T10:44:49","date_gmt":"2022-08-31T05:14:49","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/"},"modified":"2022-08-31T10:44:49","modified_gmt":"2022-08-31T05:14:49","slug":"solved-fastest-way-to-write-integer-to-file-in-c","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/","title":{"rendered":"[Solved] fastest way to write integer to file in C"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-41210655\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"41210655\" data-parentid=\"41210227\" data-score=\"1\" data-position-on-page=\"2\" data-highest-scored=\"0\" data-question-has-accepted-highest-score=\"0\" itemprop=\"suggestedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>You can reduce the overhead of file I\/O by writing to the file in large blocks to reduce the number of individual write operations.<\/p>\n<pre><code>#define CHUNK_SIZE 4096\nchar file_buffer[CHUNK_SIZE + 64] ;    \/\/ 4Kb buffer, plus enough \n                                       \/\/ for at least one one line\nint buffer_count = 0 ;\nint i = 0 ;\n\nwhile( i &lt; cnt )\n{\n    buffer_count += sprintf( &amp;file_buffer[buffer_count], \"%d %d %d\\n\", a[i], b[i], c[i] ) ;\n    i++ ;\n\n    \/\/ if the chunk is big enough, write it.\n    if( buffer_count &gt;= CHUNK_SIZE )\n    {\n        fwrite( file_buffer, buffer_count, 1, f ) ;\n        buffer_count = 0 ;\n    }\n}\n\n\/\/ Write remainder\nif( buffer_count &gt; 0 )\n{\n    fwrite( file_buffer, buffer_count, 1, f ) ;    \n}\n<\/code><\/pre>\n<p>There may be some advantage in writing <em>exactly<\/em> 4096 bytes (or some other power of two) in a single write, but that is largely file-system dependent and the code to do that becomes a little more complicated:<\/p>\n<pre><code>#define CHUNK_SIZE 4096\nchar file_buffer[CHUNK_SIZE + 64] ;\nint buffer_count = 0 ;\nint i = 0 ;\n\nwhile( i &lt; cnt )\n{\n    buffer_count += sprintf( &amp;file_buffer[buffer_count], \"%d %d %d\\n\", a[i], b[i], c[i] ) ;\n    i++ ;\n\n    \/\/ if the chunk is big enough, write it.\n    if( buffer_count &gt;= CHUNK_SIZE )\n    {\n        fwrite( file_buffer, CHUNK_SIZE, 1, f ) ;\n        buffer_count -= CHUNK_SIZE ;\n        memcpy( file_buffer, &amp;file_buffer[CHUNK_SIZE], buffer_count ) ;\n    }\n}\n\n\/\/ Write remainder\nif( buffer_count &gt; 0 )\n{\n    fwrite( file_buffer, 1, buffer_count, f ) ;    \n}\n<\/code><\/pre>\n<p>You might experiment with different values for CHUNK_SIZE &#8211; larger may be optimal, or you may find that it makes little difference.  I suggest <em>at least<\/em> 512 bytes.<\/p>\n<hr>\n<p><strong>Test results:<\/strong><\/p>\n<p>Using VC++ 2015, on the following platform:<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-fastest-way-to-write-integer-to-file-in-C.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-fastest-way-to-write-integer-to-file-in-C.png\" alt=\"enter image description here\"><\/a><\/p>\n<p>With a Seagate ST1000DM003 1TB 64MB Cache SATA 6.0Gb\/s Hard Drive.<\/p>\n<p>The results for a single test writing 100000 lines is very variable as you might expect on a desktop system running multiple processes sharing the same hard drive, so I ran the tests 100 times each and selected the minimum time result (as can bee seen in the code below the results):<\/p>\n<p><em>Using default &#8220;Debug&#8221; build settings (4K blocks):<\/em><\/p>\n<pre><code>line_by_line: 0.195000 seconds\nblock_write1: 0.154000 seconds\nblock_write2: 0.143000 seconds\n<\/code><\/pre>\n<p><em>Using default &#8220;Release&#8221; build settings (4K blocks):<\/em><\/p>\n<pre><code>line_by_line: 0.067000 seconds\nblock_write1: 0.037000 seconds\nblock_write2: 0.036000 seconds\n<\/code><\/pre>\n<p>Optimisation had a proportionally similar effect on all three implementations, the fixed size chunk write was marginally faster then the &#8220;ragged&#8221; chunk.<\/p>\n<p>When 32K blocks were used the performance was only slightly higher and the difference between the fixed and ragged versions negligible:<\/p>\n<p><em>Using default &#8220;Release&#8221; build settings (32K blocks):<\/em><\/p>\n<pre><code>block_write1: 0.036000 seconds\nblock_write2: 0.036000 seconds\n<\/code><\/pre>\n<p>Using 512 byte blocks was not measurably differnt from 4K blocks:<\/p>\n<p><em>Using default &#8220;Release&#8221; build settings (512 byte blocks):<\/em><\/p>\n<pre><code>block_write1: 0.036000 seconds\nblock_write2: 0.037000 seconds\n<\/code><\/pre>\n<p>All the above were 32bit (x86) builds. Building 64 bit code (x64) yielded interesting results:<\/p>\n<p><em>Using default &#8220;Release&#8221; build settings (4K blocks)- 64-bit code:<\/em><\/p>\n<pre><code>line_by_line: 0.049000 seconds\nblock_write1: 0.038000 seconds\nblock_write2: 0.032000 seconds\n<\/code><\/pre>\n<p>The ragged block was marginally slower (though perhaps not statistically significant), the fixed block was significantly faster as was the line-by-line write (but not enough to make it faster then any block write).<\/p>\n<p><em>The test code (4K block version):<\/em><\/p>\n<pre><code>#include &lt;stdio.h&gt;\n#include &lt;string.h&gt;\n#include &lt;time.h&gt;\n\n\nvoid line_by_line_write( int count )\n{\n  FILE* f = fopen(\"line_by_line_write.txt\", \"w\");\n  for( int i = 0; i &lt; count; i++)\n  {\n      fprintf(f, \"%d %d %d\\n\", 1234, 5678, 9012 ) ;\n  }\n  fclose(f);       \n}\n\n#define CHUNK_SIZE (4096)\n\nvoid block_write1( int count )\n{\n  FILE* f = fopen(\"block_write1.txt\", \"w\");\n  char file_buffer[CHUNK_SIZE + 64];\n  int buffer_count = 0;\n  int i = 0;\n\n  while( i &lt; count )\n  {\n      buffer_count += sprintf( &amp;file_buffer[buffer_count], \"%d %d %d\\n\", 1234, 5678, 9012 );\n      i++;\n\n      \/\/ if the chunk is big enough, write it.\n      if( buffer_count &gt;= CHUNK_SIZE )\n      {\n          fwrite( file_buffer, buffer_count, 1, f );\n          buffer_count = 0 ;\n      }\n  }\n\n  \/\/ Write remainder\n  if( buffer_count &gt; 0 )\n  {\n      fwrite( file_buffer, 1, buffer_count, f );\n  }\n  fclose(f);       \n\n}\n\nvoid block_write2( int count )\n{\n  FILE* f = fopen(\"block_write2.txt\", \"w\");\n  char file_buffer[CHUNK_SIZE + 64];\n  int buffer_count = 0;\n  int i = 0;\n\n  while( i &lt; count )\n  {\n      buffer_count += sprintf( &amp;file_buffer[buffer_count], \"%d %d %d\\n\", 1234, 5678, 9012 );\n      i++;\n\n      \/\/ if the chunk is big enough, write it.\n      if( buffer_count &gt;= CHUNK_SIZE )\n      {\n          fwrite( file_buffer, CHUNK_SIZE, 1, f );\n          buffer_count -= CHUNK_SIZE;\n          memcpy( file_buffer, &amp;file_buffer[CHUNK_SIZE], buffer_count );\n      }\n  }\n\n  \/\/ Write remainder\n  if( buffer_count &gt; 0 )\n  {\n      fwrite( file_buffer, 1, buffer_count, f );\n  }\n  fclose(f);       \n\n}\n\n#define LINES 100000\n\nint main( void )\n{\n    clock_t line_by_line_write_minimum = 9999 ;\n    clock_t block_write1_minimum = 9999 ;\n    clock_t block_write2_minimum = 9999 ;\n\n    for( int i = 0; i &lt; 100; i++ )\n    {\n        clock_t start = clock() ;\n        line_by_line_write( LINES ) ;\n        clock_t t = clock() - start ;\n        if( t &lt; line_by_line_write_minimum ) line_by_line_write_minimum = t ;\n\n        start = clock() ;\n        block_write1( LINES ) ;\n        t = clock() - start ;\n        if( t &lt; block_write1_minimum ) block_write1_minimum = t ;\n\n        start = clock() ;\n        block_write2( LINES ) ;\n        t = clock() - start ;\n        if( t &lt; block_write2_minimum ) block_write2_minimum = t ;\n    }\n\n    printf( \"line_by_line: %f seconds\\n\", (float)(line_by_line_write_minimum) \/ CLOCKS_PER_SEC ) ;\n    printf( \"block_write1: %f seconds\\n\", (float)(block_write1_minimum) \/ CLOCKS_PER_SEC ) ;\n    printf( \"block_write2: %f seconds\\n\", (float)(block_write2_minimum) \/ CLOCKS_PER_SEC ) ;\n}\n<\/code><\/pre>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">11<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved fastest way to write integer to file in C <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] You can reduce the overhead of file I\/O by writing to the file in large blocks to reduce the number of individual write operations. #define CHUNK_SIZE 4096 char file_buffer[CHUNK_SIZE + 64] ; \/\/ 4Kb buffer, plus enough \/\/ for at least one one line int buffer_count = 0 ; int i = 0 ; &#8230; <a title=\"[Solved] fastest way to write integer to file in C\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/\" aria-label=\"More on [Solved] fastest way to write integer to file in C\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[324,493,1568,1154],"class_list":["post-5921","post","type-post","status-publish","format-standard","hentry","category-solved","tag-c","tag-file","tag-stdio","tag-text-files"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] fastest way to write integer to file in C - JassWeb<\/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:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] fastest way to write integer to file in C - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] You can reduce the overhead of file I\/O by writing to the file in large blocks to reduce the number of individual write operations. #define CHUNK_SIZE 4096 char file_buffer[CHUNK_SIZE + 64] ; \/\/ 4Kb buffer, plus enough \/\/ for at least one one line int buffer_count = 0 ; int i = 0 ; ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-31T05:14:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-fastest-way-to-write-integer-to-file-in-C.png\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] fastest way to write integer to file in C\",\"datePublished\":\"2022-08-31T05:14:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/\"},\"wordCount\":326,\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/Solved-fastest-way-to-write-integer-to-file-in-C.png\",\"keywords\":[\"c++\",\"file\",\"stdio\",\"text-files\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/\",\"name\":\"[Solved] fastest way to write integer to file in C - JassWeb\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/Solved-fastest-way-to-write-integer-to-file-in-C.png\",\"datePublished\":\"2022-08-31T05:14:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/Solved-fastest-way-to-write-integer-to-file-in-C.png\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/Solved-fastest-way-to-write-integer-to-file-in-C.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-fastest-way-to-write-integer-to-file-in-c\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] fastest way to write integer to file in C\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\\\/\\\/jassweb.com\"],\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/author\\\/jaspritsinghghumangmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] fastest way to write integer to file in C - JassWeb","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:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] fastest way to write integer to file in C - JassWeb","og_description":"[ad_1] You can reduce the overhead of file I\/O by writing to the file in large blocks to reduce the number of individual write operations. #define CHUNK_SIZE 4096 char file_buffer[CHUNK_SIZE + 64] ; \/\/ 4Kb buffer, plus enough \/\/ for at least one one line int buffer_count = 0 ; int i = 0 ; ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/","og_site_name":"JassWeb","article_published_time":"2022-08-31T05:14:49+00:00","og_image":[{"url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-fastest-way-to-write-integer-to-file-in-C.png","type":"","width":"","height":""}],"author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] fastest way to write integer to file in C","datePublished":"2022-08-31T05:14:49+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/"},"wordCount":326,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-fastest-way-to-write-integer-to-file-in-C.png","keywords":["c++","file","stdio","text-files"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/","url":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/","name":"[Solved] fastest way to write integer to file in C - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/#primaryimage"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-fastest-way-to-write-integer-to-file-in-C.png","datePublished":"2022-08-31T05:14:49+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/#primaryimage","url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-fastest-way-to-write-integer-to-file-in-C.png","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-fastest-way-to-write-integer-to-file-in-C.png"},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-fastest-way-to-write-integer-to-file-in-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] fastest way to write integer to file in C"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/5921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=5921"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/5921\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=5921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=5921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=5921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}