Share via


Small Basic Sample: File Path

Code

' fptest - File Path Test
' Version 0.21
' Copyright ©2017 Nonki Takahashi. The MIT License.
' Usage: 
' (1) Save this source file as fptest.sb.
' (2) Run.
 
sSF = File.GetSettingsFilePath()
TextWindow.WriteLine("File.GetSettingsFilePath()=" + sSF)
n = File.ReadContents(sSF)
TextWindow.WriteLine("File.ReadContents(sSF)=" + n)
n = n +  1
File.WriteContents(sSF, n)
sTF = File.GetTemporaryFilePath()
TextWindow.WriteLine("File.GetTemporaryFilePath()=" + sTF)
File.WriteContents(sTF, n)
n = File.ReadContents(sTF)
TextWindow.WriteLine("File.ReadContents(sTF)=" + n)

See Also