1 00:00:00,000 --> 00:00:02,638 Now something you should know is the 2 00:00:02,639 --> 00:00:06,209 cursor concept. What happens here is 3 00:00:06,209 --> 00:00:09,359 that when you create a file, file object is 4 00:00:09,389 --> 00:00:12,059 created, and then when you apply the 5 00:00:12,059 --> 00:00:15,059 read methods, before applying the read 6 00:00:15,059 --> 00:00:18,809 method, the cursor stands at the very 7 00:00:18,809 --> 00:00:22,169 first character of the text file. When 8 00:00:22,169 --> 00:00:24,569 you apply the read methods, the cursor 9 00:00:24,599 --> 00:00:30,119 goes to the end of the text file. So now 10 00:00:30,179 --> 00:00:32,459 after the read method has been applied, 11 00:00:32,624 --> 00:00:37,218 the cursor stands here. If you apply 12 00:00:37,711 --> 00:00:42,542 another read operation, like that, Save, 13 00:00:43,032 --> 00:00:46,392 execute. What's going to happen is that 14 00:00:46,709 --> 00:00:49,109 maybe you were expecting these lines to 15 00:00:49,109 --> 00:00:51,539 be printed out two times, what happens 16 00:00:51,539 --> 00:00:53,759 instead is they are printed one time, 17 00:00:53,789 --> 00:00:56,549 and then this is just an empty 18 00:00:56,549 --> 00:00:59,519 string. Because the cursor after the 19 00:00:59,519 --> 00:01:02,129 first execution of read was at this 20 00:01:02,129 --> 00:01:04,319 point, and below this point, there's 21 00:01:04,319 --> 00:01:07,349 nothing, so you get that empty string 22 00:01:07,349 --> 00:01:10,829 there. What you can do is, if you want 23 00:01:10,829 --> 00:01:13,439 to print the content many times, what 24 00:01:13,464 --> 00:01:16,810 you can do is save the content 25 00:01:16,834 --> 00:01:19,103 [No audio] 26 00:01:19,128 --> 00:01:20,184 in a variable 27 00:01:21,659 --> 00:01:26,099 and then print the content as many times 28 00:01:26,219 --> 00:01:27,239 as you wish. 29 00:01:27,264 --> 00:01:29,675 [No audio] 30 00:01:29,700 --> 00:01:32,988 And you'll get the output 31 00:01:33,976 --> 00:01:35,834 two times, as you can see here. 32 00:01:35,859 --> 00:01:38,056 [No audio] 33 00:01:38,088 --> 00:01:40,055 That's because the read method was 34 00:01:40,102 --> 00:01:42,427 executed only once here. 35 00:01:43,710 --> 00:01:45,450 So that's something you should know. 36 00:01:45,487 --> 00:01:49,719 [No audio]