🔒 Closed Input/output tutorial - 5 (last of the series) - writing to file

Status
Not open for further replies.

codyscott

Honorary Poster
Hey guys,

Heto na ang last part ng series na ito. Writing output to a txt file.
Kung sinusundan nyo ito at meron na kayong mga source code, kailangan lang natin baguhin ng konti ang MainApp class.

Nothing complicated. It's just straightforward writing to file.

BTW, kung napansin nyo ang buong application natin, WALA kang makikitang MAHAHABANG logic codes. Walang if-then-else, walang katakot takot na mga logic codes...walang mahahabang PAG IISIP. Just pure class attributes and methods and still our program works and do what we want it to do.
(Of course, from this point, you can put as many logic as you want, depende sa gusto nyong feature).

But the point is, think simple and do not make your application very very complicated. OOP really makes creating application simple.

Here's the snapshot. Edit nyo konti ang MainApp and that's it!
Goodluck and happy coding!
 

Attachments

  • mainapp.webp
    mainapp.webp
    157 KB · Views: 19
  • output.webp
    output.webp
    15 KB · Views: 12
Status
Not open for further replies.

About this Thread

  • 5
    Replies
  • 581
    Views
  • 6
    Participants
Last reply from:
fR31nD

Trending Topics

Online now

Members online
542
Guests online
670
Total visitors
1,212

Forum statistics

Threads
2,274,612
Posts
28,957,212
Members
1,234,355
Latest member
Ghostsaveich
Back
Top