Line Input# Statement

Reads a line from a sequential file into a variable.


Line Input Statement diagram

Line Input #fileNum, variable


fileNum: Number of the file that contains the data that you want to read. The file must have been opened in advance with the Open statement using the key word INPUT.

variable: The name of the variable that stores the result.

Line Input# ๋ฌธ์„ ์‚ฌ์šฉํ•˜๋ฉด ์—ด๋ฆฐ ํŒŒ์ผ์—์„œ ๋ณ€์ˆ˜๋กœ ๋ฌธ์ž์—ด์„ ์ฝ์–ด์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฌธ์ž์—ด ๋ณ€์ˆ˜๋Š” ์ฒซ ๋ฒˆ์งธ ์บ๋ฆฌ์ง€ ๋ฆฌํ„ด(Asc=13) ๋˜๋Š” ์ค„ ๋ฐ”๊ฟˆ(Asc=10)๊นŒ์ง€ ์ค„ ๋‹จ์œ„๋กœ ์ฝ์Šต๋‹ˆ๋‹ค. ์ค„ ๋ ํ‘œ์‹œ๋Š” ๊ฒฐ๊ณผ ๋ฌธ์ž์—ด์— ํฌํ•จ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.


Please support us!