deathtaker26 Posted December 11, 2010 Author Share Posted December 11, 2010 I have been working on some stuff with visual basics 2010 and I was making an auto updater for my own game engine for my new game knights of lunar crescent when I stumbled upon a problem I never actually looked into. I need to know how to read parts of text and not just the whole thing. For example Ini files read string of text and I need to do that with vb 2010 I tried converting it from vb6 to 2010 and couldn't understand it I looked at other examples so how do I do this? Link to comment Share on other sites More sharing options...
Robin Posted December 11, 2010 Share Posted December 11, 2010 XML. Link to comment Share on other sites More sharing options...
Tdogthedog Posted December 11, 2010 Share Posted December 11, 2010 FileGetObject(file#, Var)Input(file#, var) Link to comment Share on other sites More sharing options...
deathtaker26 Posted December 11, 2010 Author Share Posted December 11, 2010 @TDog:> FileGetObject(file#, Var)> Input(file#, var)so basically I write it like this?```my.computer.network.downloadfile("http://xx.xxx.x.x/updates/updates.ini", curdir() + "\updates\update.ini")FileGetObject(CurDir() & "\updates\update.ini", 2)```and this will return me with the 12 if I say2=12 in the ini file? Link to comment Share on other sites More sharing options...
Tdogthedog Posted December 11, 2010 Share Posted December 11, 2010 ```filename = App_Path() & "data\text.txt"F = FreeFile()FileOpen(F, filename, OpenMode.Input)FileGetObject(F, Phrase) 'or Input(F, Phrase)FileClose(F)```but if your doing ini you ill need to either add in the getline functions or check out this [INIAccess](http://www.codeguru.com/forum/archive/index.php/t-189920.html) Link to comment Share on other sites More sharing options...
deathtaker26 Posted December 11, 2010 Author Share Posted December 11, 2010 @TDog:> ```> filename = App_Path() & "data\text.txt"> F = FreeFile()> FileOpen(F, filename, OpenMode.Input)> FileGetObject(F, Phrase) 'or Input(F, Phrase)> FileClose(F)> ```> but if your doing ini you ill need to either add in the getline functions or check out this [INIAccess](http://www.codeguru.com/forum/archive/index.php/t-189920.html)okay thank you now I can use these for my login system I had found another way to work my updater by downloading strings from my ftp i couldn't use robin's updater because of how my client is going to be running so sorry robin XD Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now