forums.PPSSPP.org
VBS is picking up something in ppsspp.ini - Printable Version

+- forums.PPSSPP.org (https://forums.ppsspp.org)
+-- Forum: PPSSPP - Playstation Portable Simulator Suitable for Playing Portably (/forumdisplay.php?fid=1)
+--- Forum: Development (/forumdisplay.php?fid=3)
+--- Thread: VBS is picking up something in ppsspp.ini (/showthread.php?tid=5123)



VBS is picking up something in ppsspp.ini - jkpwed - 07-27-2013 07:03 PM

VBS is picking up something i>>?[General] using this vbs found online, all i did was to change so it can read the ppsspp.ini
open note pad save as 1.vbs

Option Explicit

Const fsoForReading = 1
Const fsoForWriting = 2

Function LoadStringFromFile(filename)
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("ppsspp.ini", fsoForReading)
LoadStringFromFile = f.ReadAll
End Function

Sub SaveStringToFile(filename, text)
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("ppsspp.ini", fsoForWriting)
f.Write text
End Sub

'SaveStringToFile "new.ini", "Hello World" & vbCrLf
MsgBox LoadStringFromFile("ppsspp.ini")


RE: VBS is picking up something in ppsspp.ini - Henrik - 07-27-2013 10:24 PM

That's probably a UTF-8 byte order mark, it's basically a marker that says that this file is encoded in UTF-8 Unicode.


RE: VBS is picking up something in ppsspp.ini - jkpwed - 07-28-2013 06:19 PM

Thanks