QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: FellippeHeitor on June 13, 2021, 08:21:42 pm

Title: [video] File I/O in QB64 (part 1/2)
Post by: FellippeHeitor 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.

Title: Re: [video] File I/O in QB64 (part 1/2)
Post by: FellippeHeitor 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
Title: Re: [video] File I/O in QB64 (part 1/2)
Post by: NOVARSEG 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


Title: Re: [video] File I/O in QB64 (part 1/2)
Post by: FellippeHeitor on June 14, 2021, 04:50:00 am
Exactly, it's native to macOS (control + mouse wheel).

Thanks for watching!
Title: Re: [video] File I/O in QB64 (part 1/2)
Post by: bplus 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 :)
Title: Re: [video] File I/O in QB64 (part 1/2)
Post by: FellippeHeitor 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.
Title: Re: [video] File I/O in QB64 (part 1/2)
Post by: FellippeHeitor on June 18, 2021, 07:06:01 am
  [ This attachment cannot be displayed inline in 'Print Page' view ]  
Title: Re: [video] File I/O in QB64 (part 1/2)
Post by: johnno56 on June 18, 2021, 09:13:14 am
The next membership goal should be enough to fill an Airbus A380... 853...
Title: Re: [video] File I/O in QB64 (part 1/2)
Post by: Cobalt on June 18, 2021, 09:59:25 am
Exactly, it's native to macOS (control + mouse wheel).

Thanks for watching!

Same with Windows.
Nice video Fellippe.
Title: Re: [video] File I/O in QB64 (part 1/2)
Post by: TempodiBasic 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
Title: Re: [video] File I/O in QB64 (part 1/2)
Post by: FellippeHeitor on June 28, 2021, 08:14:23 am
Part 2: https://www.qb64.org/forum/index.php?topic=4024.msg133617