Reading/Writing & Types

Blitz3D Forums/Blitz3D Beginners Area/Reading/Writing & Types

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This works on 1.90
Type mytype
  Field x
End Type
File=OpenFile ("Myfile.txt")
WriteInt(file,5)
CloseFile file
file=ReadFile("myfile.txt")

NewType.MyType = New MyType

NewType\x=ReadInt(File)

CloseFile File
Print newtype\x