rickyah / ini-parser

Read/Write an INI file the easy way!
MIT License
960 stars 236 forks source link

Parse ini file with no sections #224

Closed Bluscream closed 3 years ago

Bluscream commented 3 years ago
IniParser.Exceptions.ParsingException
  HResult=0x80131500
  Message=Could not parse file AutoCloseConsole=true
ForgeVersion=
InstanceType=OneSix
IntendedVersion=
JavaArchitecture=64
JavaPath=C:/Program Files/AdoptOpenJDK/jdk-15.0.2.7-hotspot/bin/javaw.exe
JavaTimestamp=1611206204000
JavaVersion=15.0.2
JvmArgs=-XX:+UnlockExperimentalVMOptions -XX:+UseZGC
LWJGLVersion=
LaunchMaximized=false
LiteloaderVersion=
LogPrePostOutput=true
MCLaunchMethod=LauncherPart
MaxMemAlloc=4096
MinMemAlloc=2048
MinecraftWinHeight=480
MinecraftWinWidth=854
OverrideCommands=false
OverrideConsole=false
OverrideJava=false
OverrideJavaArgs=true
OverrideJavaLocation=true
OverrideMCLaunchMethod=false
OverrideMemory=true
OverrideNativeWorkarounds=false
OverrideWindow=false
PermGen=128
PostExitCommand=
PreLaunchCommand=
ShowConsole=false
ShowConsoleOnError=true
UseNativeGLFW=false
UseNativeOpenAL=false
WrapperCommand=
iconKey=vivecraft
lastLaunchTime=1614793595994
name=Vivecraft VR Forge 1.16.5
notes=
totalTimePlayed=184
 while parsing line number 0 with value '' - IniParser version: 2.5.2.0
  Source=INIFileParser
  StackTrace:
   at IniParser.FileIniDataParser.ReadFile(String filePath, Encoding fileEncoding)
   at IniParser.FileIniDataParser.ReadFile(String filePath)
   at MCLauncher2MultiMC.Program.Main(String[] args) in C:\Users\Shadow\source\repos\MCLauncher2MultiMC\Program.cs:line 33

  This exception was originally thrown at this call stack:
    [External Code]

Inner Exception 1:
IOException: The filename, directory name, or volume label syntax is incorrect. : 'C:\Users\Shadow\source\repos\MCLauncher2MultiMC\bin\Debug\netcoreapp3.1\AutoCloseConsole=true
ForgeVersion=
InstanceType=OneSix
IntendedVersion=
JavaArchitecture=64
JavaPath=C:\Program Files\AdoptOpenJDK\jdk-15.0.2.7-hotspot\bin\javaw.exe
JavaTimestamp=1611206204000
JavaVersion=15.0.2
JvmArgs=-XX:+UnlockExperimentalVMOptions -XX:+UseZGC
LWJGLVersion=
LaunchMaximized=false
LiteloaderVersion=
LogPrePostOutput=true
MCLaunchMethod=LauncherPart
MaxMemAlloc=4096
MinMemAlloc=2048
MinecraftWinHeight=480
MinecraftWinWidth=854
OverrideCommands=false
OverrideConsole=false
OverrideJava=false
OverrideJavaArgs=true
OverrideJavaLocation=true
OverrideMCLaunchMethod=false
OverrideMemory=true
OverrideNativeWorkarounds=false
OverrideWindow=false
PermGen=128
PostExitCommand=
PreLaunchCommand=
ShowConsole=false
ShowConsoleOnError=true
UseNativeGLFW=false
UseNativeOpenAL=false
WrapperCommand=
iconKey=vivecraft
lastLaunchTime=1614793595994
name=Vivecraft VR Forge 1.16.5
notes=
totalTimePlayed=184
'