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

0 Members and 1 Guest are viewing this topic.

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

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 »
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 »
@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 »
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 »
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 »
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 »
  [ 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 »
The next membership goal should be enough to fill an Airbus A380... 853...
Logic is the beginning of wisdom.

Marked as best answer by on Today at 02:18:10 pm

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 »
  • Undo 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 »
    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