GLOGIC 20 wrote: > hey Mickey > sorry that was just for myself to see if the correct code was being > executed. Not using that in final version just as i was debugging. but i get > your point and will use messageboxes when if i need to tell the player > something > thanks > gav > > >> From: Mickey Mathieson <[EMAIL PROTECTED]> >> Reply-To: [email protected] >> To: [email protected] >> Subject: Re: [c-prog] search a text file >> Date: Tue, 3 Apr 2007 06:31:50 -0700 (PDT) >> >> >> --- glogic_1 <[EMAIL PROTECTED]> wrote: >> >>> Hey all >>> sorry if the posts twice the first time gave me an >>> error. basically >>> i just need to know how to move to next line of a >>> text file if the >>> first word does not match the word searched for. >>> using borland builder this what i have so far. ive >>> checked loads of >>> tutorials on th net just cant seem to find what i >>> need . or is there >>> a better way to do this altogether? >>> cheers >>> g
Two things: 1) Messages to the user (even yourself) should not be in all-caps. Going back through and fixing error messages is usually low-priority for a programmer (or they simply forget), so the error message would end up "yelling" at the user. 2) What are you using this for? It looks like you plan to restore a saved game. Most games that save things usually dump the saved file into a subdirectory and then scan that directory for saved games (usually have a file extension like .sav) and sort the files by date and time. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* VerifyMyPC 2.4 Change tracking and management tool. Reduce tech. support times from 2 hours to 5 minutes. http://www.CubicleSoft.com/VerifyMyPC/
