Code archives/File Utilities/Simple file output debugger

This code has been declared by its author to be Public Domain code.

Download source code

Simple file output debugger by AntMan - Banned in the line of duty.
(Posted 22 years ago)
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.

Simple..but nice ;)
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