Talk:Read a specific line from a file: Difference between revisions

From Rosetta Code
Content added Content deleted
(I know what you mean.)
Line 1: Line 1:
=...put it in a variable?=
=...put it in a variable?=
Why does it need to be put in a variable? It appears that none of the first three implementations actually do that. --[[User:TimToady|TimToady]] 00:14, 24 July 2011 (UTC)
Why does it need to be put in a variable? It appears that none of the first three implementations actually do that. --[[User:TimToady|TimToady]] 00:14, 24 July 2011 (UTC)
::I know what you mean. If we are going to read a line within a program, we need to be able to store what we have read in order to make use of it. A variable would usually be a good place. I could add "or in memory for future use within the program", but I am open to suggestions, if you think we need something else. [[User:Markhobley|Markhobley]] 00:45, 24 July 2011 (UTC)
::I know what you mean. If we are going to read a line within a program, we need to be able to store what we have read in order to make use of it. A variable would usually be a good place. I have added "or in memory (for potential future use within the program if the code were to become embedded) ". I'm not sure whether we need the bit in brackets, and I am open to suggestions on other possible wording, if you think we need something else. [[User:Markhobley|Markhobley]] 00:45, 24 July 2011 (UTC)

Revision as of 00:52, 24 July 2011

...put it in a variable?

Why does it need to be put in a variable? It appears that none of the first three implementations actually do that. --TimToady 00:14, 24 July 2011 (UTC)

I know what you mean. If we are going to read a line within a program, we need to be able to store what we have read in order to make use of it. A variable would usually be a good place. I have added "or in memory (for potential future use within the program if the code were to become embedded) ". I'm not sure whether we need the bit in brackets, and I am open to suggestions on other possible wording, if you think we need something else. Markhobley 00:45, 24 July 2011 (UTC)