OLD | NEW |
| (Empty) |
1 import 'dart:io'; | |
2 | |
3 void printDailyNewsDigest() { | |
4 File file = new File("dailyNewsDigest.txt"); | |
5 print(file.readAsStringSync()); | |
6 } | |
7 | |
8 void main() { | |
9 printDailyNewsDigest(); | |
10 printWinningLotteryNumbers(); | |
11 printWeatherForecast(); | |
12 printBaseballScore(); | |
13 } | |
14 | |
15 printWinningLotteryNumbers() { | |
16 print('Winning lotto numbers: [23, 63, 87, 26, 2]'); | |
17 } | |
18 | |
19 printWeatherForecast() { | |
20 print('Tomorrow\'s forecast: 70F, sunny.'); | |
21 } | |
22 | |
23 printBaseballScore() { | |
24 print('Baseball score: Red Sox 10, Yankees 0'); | |
25 } | |
OLD | NEW |