Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How is input/output done?

input output
0
10 Posted

How is input/output done?

0
10

A22: There are two stream types, called Character_IStream and Character_OStream that are used for input and output respectively. All Foundation types, as well as all other types exporting Get_From and Put_To operations, can be input/output by using >> and << operators respectively. However, before any input or output is done, the stream must be opened by using either Open_Internal or Open_External operation (depending on the final destination of the data) and then, after input/output is completed, closed using Close_Internal or Close_External operation respectively. It is sometimes hard to remember whether to use "<<" or ">>”. Solution — remember that the “arrow” is pointing in the direction of the flow of the information. That is, for input, the “arrow” points from the stream object into the object that is being input into, e.g.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123