SLIpros Posted January 19, 2010 Share Posted January 19, 2010 (edited) HeyIve got a path D:\games\Call of Duty 4 - Modern Warfare\players\profiles\In folder profiles there 1 more folder witch name i don't know and in this folder the are ini fileLike this D:\games\Call of Duty 4 - Modern Warfare\players\profiles\...\test.iniHow can i read it?Thank you Edited January 19, 2010 by SLIpros Link to comment Share on other sites More sharing options...
czardas Posted January 19, 2010 Share Posted January 19, 2010 (edited) HeyIve got a path D:\games\Call of Duty 4 - Modern Warfare\players\profiles\In folder profiles there 1 more folder witch name i don't know and in this folder the are ini fileLike this D:\games\Call of Duty 4 - Modern Warfare\players\profiles\...\test.iniHow can i read it?Thank youSearch the help file for the function _FileListToArray. See if that helps.Edit: See post number 3 for a better answer. Edited January 19, 2010 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
omikron48 Posted January 19, 2010 Share Posted January 19, 2010 You can get a list of files and folders in a directory using FileFindFirstFile and FileFindNextFile. You can determine whether a filename returned by FileFindNextFile is a folder by using FileGetAttrib and StringInStr using attribute value "D". 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