My scrapbook about almost anything I stumble upon in my tech world. If you find anything useful don't forget to give thumbs-up :)


Tuesday, September 27, 2022

Golang - Reading File at Once

Ola amigos :) Hope, You are doing great. 
So, Here, I am again with silly scrap which I see is done all the time and that is reading files. Today, we are going to see how to read a file in one go ;-) But before using this method, check if the file size is going to be small enough to fit into system's memory. We know, OS uses RAM (Random access memory) to store all temporary data which it requires frequently, so if you are going to read a file or anything which overshoot the RAM size, it is time to think how you can avoid that.  
Hence, think before implementing any solution blindly cause it may work for any demos but might fail in real-time scenarios. Considering that, let's see how it is done in Golang world - 


Like the below page to get the update  
Facebook Page      Facebook Group      Twitter Feed      Telegram Group

No comments:

Post a Comment


The postings on this site are my own and don't necessarily represent IBM's or other companies positions, strategies or opinions. All content provided on this blog is for informational purposes and knowledge sharing only.
The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of his information.