Don't know if this helps, just an idea: >> 1) I have a file with some 30,000 lines, but I want to know how many lines >> are >> in the file before I do anything to it - is this possible. I couldn't see >> how >> just looking at the syntax for files. >>
Read in the file to a string and count the number of linebreaks (chr$(10)). I am not sure: Is there a counting function in Gambas? Something that counts how many times a part-string appears within a string? Maybe in the string.-class? Implemented in C, this would accelerate such a thing by several factors... Rolf ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user