1. First program and questions
- Posted by "Brandon Dennis" <bdennis at shreve-lib.org> Jul 01, 2004
- 475 views
Hello everyone :) I recently started studying Euphoria and I'm very excited to get started with it. Just to save myself a little bit of time, I'm going to get the new Win32lib and try to write a simple program. What I'm curious about is if Euphoria is a good choice for a simple program like this: I have a couple of reports that arrive in plain text format. I'd like to strip out the HEADER information that's printed randomly throughout and then insert a PAGE BREAK at the end of each record. Is this something pretty straightforward that a Euphoria newbie can handle? I have some experience in C and Dark Basic (yeah, I know). But I'm trepid to actual 'create' a program. Thanks so much for the help! ;) Brandon
2. Re: First program and questions
- Posted by "Mike Sabal" <Sabal.Mike at notations.com> Jul 01, 2004
- 449 views
>>> bdennis at shreve-lib.org 07/01/2004 11:41:01 AM >>> > I recently started studying Euphoria and I'm very excited to get started > with it. Just to save myself a little bit of time, I'm going to get the > new Win32lib and try to write a simple program. Welcome to the language. > I have a couple of reports that arrive in plain text > format. I'd like to strip out the HEADER information that's printed > randomly throughout and then insert a PAGE BREAK at the end of each > record. Euphoria is well suited for this. I would recommend using the DOS version first for the logic, then make it pretty with Win32Lib once you know the logic is working. Assuming the report has identifiable markers (like a row of equal signs, for example) to identify the split between the header and body, and something to identify the end of a record, it should take you an hour max to do, most of that time being spent finding the correct syntax in library.doc. A few tips: Make sure you include the wildcard.e and get.e libraries. Using gets, compare, and puts should get you well on your way. Dive right in, and if you get stuck, we're here to help. The only foolish question is the one that isn't asked! > Brandon Michael J. Sabal
3. Re: First program and questions
- Posted by "William Heimbigner" <icxcnika at hotpop.com> Jul 01, 2004
- 463 views
> Hello everyone :) > > I recently started studying Euphoria and I'm very excited to get started > with it. Just to save myself a little bit of time, I'm going to get the > new Win32lib and try to write a simple program. > > What I'm curious about is if Euphoria is a good choice for a simple > program like this: I have a couple of reports that arrive in plain text > format. I'd like to strip out the HEADER information that's printed > randomly throughout and then insert a PAGE BREAK at the end of each > record. Check out a few routines i made a while ago (do an archive search for William Heimbigner) Get the FindInFile (FIF) one. Its a really cool routine i made that will search a text file for a text string and will report the lines that contain the given string. AMOF, that reminds me of some improvements i gotta do on it... :( But look at my routine, it should get you started. If you wanna IM about it, you can contact me: AIM- icxcnika123 Yahoo!- icxcnika123 MSN- icxcnika at hotpop.com ICQ #303615600 Email: icxcnika at hotpop.com The UBoard - http://uboard.proboards32.com What can I say? I'm a (prodigal) (teen) person (with ADHD) that likes to talk!!! William Heimbigner
4. Re: First program and questions
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 02, 2004
- 431 views
On Thu, 1 Jul 2004 10:41:01 -0500, Brandon Dennis <bdennis at shreve-lib.org> wrote: >What I'm curious about is if Euphoria is a good choice for a simple >program like this: I have a couple of reports that arrive in plain text >format. I'd like to strip out the HEADER information that's printed >randomly throughout and then insert a PAGE BREAK at the end of each >record. > >Is this something pretty straightforward that a Euphoria newbie can >handle? I have some experience in C and Dark Basic (yeah, I know). But >I'm trepid to actual 'create' a program. I can't think of a better language to do this in I'll mail you a recent example direct, Regards, Pete