0 Members and 2 Guests are viewing this topic.
Imports System.IOPublic Class Form1 Dim data As List(Of Byte) Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click SaveFileDialog1.ShowDialog() Dim Stream As System.IO.StreamWriter = System.IO.File.CreateText(SaveFileDialog1.FileName) End SubEnd Class
'*** Write whatever bytes you wantStream.WriteByte(0)'*** Clear the stream buffer and flush it to file (Only if the stream is buffered.)Stream.Flush()'*** Close the streamStream.Close()
Imports System.IOPublic Class Form1 Dim data As List(Of Byte) Public Shared Counter As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click SaveFileDialog1.ShowDialog() Dim Stream As FileStream = New FileStream(SaveFileDialog1.FileName, FileMode.Create) For i As Integer = 0 To data.Count - 1 Stream.WriteByte(data(i)) Next Stream.Close() End SubEnd Class
I'm also trying to do one, but just for learning. C#, though.Also, this is calc related, and computer, wrong forum?
'Non-Calc-Related Computer Projects and Ideas'...
Hey Omnimaga Community,I'm trying to make a program that compiles data to a Ti83+/84+/SE program with Visual Basic.There's a list holding the program data. I define the list with Public data As List(Of Byte).I am looking for a routine that creates a new 8xp file in a directory based on a SavefileDialog.The program data should be dependent of the content from the data list.Thanks in advance.
I'm also trying to do one, but just for learning. C#, though.
Also, this is calc related, and computer, wrong forum?
I know quite a lot about the structure. And so can you if you look here. It's more complicated than writing just the data to it, but it is fairly well explained in there. Please ask if you have more questions.
If you are using VB.NET, you can use this library I made for just that purpose. It can convert strings to bytes or hex, and it can create 8xps, among other things.