Simple file output debugger
Attention! 👉Starting November 2024, BlitzCoder.org will now be BlitzBasic.org.
Tweet blitz3d blitzplus code-archives file-utilities
Debug a file both in and out.
Author: Anthony Wells
Simply include this in your project(Via an include for easy on/off switching)
and it'll convert all file calls to read/writeline, so your text output and input is converted, allowing you to easily debug custom formats.(As you can now read the output in any text editor in plain english.)
The cool bit is that it's automatic, just include it "Include "SDebugFile.bb" and your already wrote code will use it, as it swaps around built in func calls.
Function ReadInt(file)
return ReadLine(file)
End Function
Function ReadFloat#(file)
return ReadLine(file)
End Function
Function ReadString$(file)
return ReadLine(file)
End Function
Function WriteInt(file,val)
WriteLine file,val
End Function
Function WriteFloat(File,val#)
WriteLine file,val
End Function
Function WriteString(file,val$)
WriteLine file,val
End Function
Reply To Topic (minimum 10 characters)
Please log in to reply