Hi, how is this done in assembly?
ofstream writer("settings.ini"); writer << "launch: 1" ifstream reader("settings.ini") char buffer[MAX_PATH]; reader.getline(buffer, MAX_PATH); HANDLE hFile = CreateFileA(StubPath,GENERIC_WRITE,0,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0); memset(&overL, 0, sizeof(overL)); overL.Offset = 0xffffffff; //end of file overL.OffsetHigh = -1; WriteFile(hFile, Settings, strlen(Settings), &dwBytesWritten, &overL); CloseHandle(hFile);
How would I split a string in assembly?
I am coding in mASM from C++, and I have discovered that some of my favourite functions are not the same as they are in assembly!
Basically, in my program, I am trying to create an ini file that I can read and write off of, and some other things that I always put in my programs. WriteFile is important to me too, so that I can write data at the end of my file, so it can be fetched by the user.
I am trying to write data at the end of my program so that my file can fetch that data, and use that data as its settings, instead of reading an ini file.