Author Topic: [video] File I/O in QB64 (part 1/2)  (Read 4240 times)

0 Members and 1 Guest are viewing this topic.

FellippeHeitor

  • Guest
[video] File I/O in QB64 (part 1/2)
« on: June 13, 2021, 08:21:42 pm »
You will eventually need to save data or get data back from a file in your programs. Here's how to do that in the most, *ahem*, BASIC way. Part 1 of 2.

« Last Edit: June 13, 2021, 08:46:18 pm by FellippeHeitor »

FellippeHeitor

  • Guest
Re: [video] File I/O in QB64 (part 1/2)
« Reply #1 on: June 13, 2021, 08:44:44 pm »
  • Best Answer
  • Here's the list of "chapters"/segments:
    00:00 Intro
    00:55 Open command overview
    02:31 Outputting data to disk - CSV files
    09:04 Reading data back from disk - CSV files
    10:52 Detecting the end of a file - EOF()
    15:25 Appending data to an existing file
    17:39 Outputting "freer" text to disk - Print statement
    24:15 Reading text back from a disk file - Line Input statement
    26:48 Closing files
    27:43 Moving the cursor in a file - Seek statement
    30:56 Conclusion
    « Last Edit: June 13, 2021, 08:46:11 pm by FellippeHeitor »

    Offline NOVARSEG

    • Forum Resident
    • Posts: 509
      • View Profile
    Re: [video] File I/O in QB64 (part 1/2)
    « Reply #2 on: June 14, 2021, 12:10:02 am »
  • Best Answer
  • @FellippeHeitor

    How do you magnify the screen, is that a MAC thing?

    Staying tuned for part 2



    FellippeHeitor

    • Guest
    Re: [video] File I/O in QB64 (part 1/2)
    « Reply #3 on: June 14, 2021, 04:50:00 am »
  • Best Answer
  • Exactly, it's native to macOS (control + mouse wheel).

    Thanks for watching!

    Offline bplus

    • Global Moderator
    • Forum Resident
    • Posts: 8053
    • b = b + ...
      • View Profile
    Re: [video] File I/O in QB64 (part 1/2)
    « Reply #4 on: June 15, 2021, 12:52:16 pm »
  • Best Answer
  • Wow, QB was doing CSV files from beginning with Write, I probably learned that back in 90's and forgot all about it. Print #fh was alwys my main Output or Append command.

    @FellippeHeitor  Susan Sarandon is 74 so I imagine she would be complimented by your age estimation :)
    « Last Edit: June 15, 2021, 12:56:00 pm by bplus »

    FellippeHeitor

    • Guest
    Re: [video] File I/O in QB64 (part 1/2)
    « Reply #5 on: June 15, 2021, 05:06:12 pm »
  • Best Answer
  • Haha, totally. I Googled her after I shot the video and I gotta say she's doing really well.

    FellippeHeitor

    • Guest
    Re: [video] File I/O in QB64 (part 1/2)
    « Reply #6 on: June 18, 2021, 07:06:01 am »
  • Best Answer
  •   [ You are not allowed to view this attachment ]  

    Offline johnno56

    • Forum Resident
    • Posts: 1270
    • Live long and prosper.
      • View Profile
    Re: [video] File I/O in QB64 (part 1/2)
    « Reply #7 on: June 18, 2021, 09:13:14 am »
  • Best Answer
  • The next membership goal should be enough to fill an Airbus A380... 853...
    Logic is the beginning of wisdom.

    Offline Cobalt

    • QB64 Developer
    • Forum Resident
    • Posts: 878
    • At 60 I become highly radioactive!
      • View Profile
    Re: [video] File I/O in QB64 (part 1/2)
    « Reply #8 on: June 18, 2021, 09:59:25 am »
  • Best Answer
  • Exactly, it's native to macOS (control + mouse wheel).

    Thanks for watching!

    Same with Windows.
    Nice video Fellippe.
    Granted after becoming radioactive I only have a half-life!

    Offline TempodiBasic

    • Forum Resident
    • Posts: 1792
      • View Profile
    Re: [video] File I/O in QB64 (part 1/2)
    « Reply #9 on: June 19, 2021, 06:49:10 pm »
  • Best Answer
  • hi, on my Toshiba windows 10 ctrl+wheel of mouse has many different results depending of the situation:
    in the webbrowser it changes the vision zooming in or out
    in a window of system with forlders it cicles among the different ways to see the icons in that window
    on the desktop image it makes a zoom in or out of icons but not  of the image used as background

    but if you go into menu of windows accessories and you activate magnify glass  then you can use  ctrl+ wheel of mouse to magnify
    Programming isn't difficult, only it's  consuming time and coffee

    FellippeHeitor

    • Guest