Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
f = FREEFILE
|
||||
OPEN "input.txt" FOR INPUT AS #f
|
||||
|
||||
lineapedida = 7
|
||||
cont = 0
|
||||
DO WHILE NOT EOF(f)
|
||||
LINE INPUT #f, linea$
|
||||
cont = cont + 1
|
||||
IF cont = lineapedida THEN
|
||||
IF linea$ = "" THEN PRINT "The 7th line is empty" ELSE PRINT linea$
|
||||
EXIT DO
|
||||
END IF
|
||||
LOOP
|
||||
IF cont < lineapedida THEN PRINT "There are only "; cont; " lines in the file"
|
||||
CLOSE #1
|
||||
Loading…
Add table
Add a link
Reference in a new issue