Advertisement
2_2002-2004 Files/ File Controls/ Input/ Output #120177

Read a textfile via api calls (v1.1)

This code is designed for reading text files. i have written this code because i did not want to use the slow "open for input..." and "freefile" bla bla code... I know i coul do this via the richedit control, but i wanted to know how to do it via api, and maybe you to... This code is using the "CreateFile" Api, which must be called differently in windows 2000. Therefore, i added a "IsWin2000" function to check for windows 2000. Update: Now added a class which wraps the module, lot's of events and functionality. it's 50ms slower in read (with my test file) Class module includes also function ReadCharacters which reads the specified ammount of characters from the open file.

AI

Resumen de IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Código fuente
original-source
Upload
Comentarios originales (3)
Recuperado de Wayback Machine