[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] Read a file into sqr
- Subject: Re: [sqr-users] Read a file into sqr
- From: Robert Goshko <robert.goshko@gmail.com>
- Date: Wed, 4 Jan 2006 09:18:46 -0700
- Delivery-date: Wed, 04 Jan 2006 11:20:37 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;b=K6sS4eqO8PZjPoBpOnY0Zp8E5FZNJLR892OdtN8K4AAhka50GR4qlLVi3FldZsrCCH+bOqNV2Zw2ccdUGvFRWwBfS4NLl6QcDoJ8VEotmqOtuCiTUYrHC5R4PHogGuWC2mTG09Kzqb9SDUxig7uXd+MIs+WWaVBrmzIjx/CFz3c=
- In-reply-to: <768DB1A57CCF794A9A6F7288B66D8F6563AA6C@HAMMERHEAD.ltc.com>
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
- References: <768DB1A57CCF794A9A6F7288B66D8F6563AA6C@HAMMERHEAD.ltc.com>
On 03/01/06, Debbie Larney <debbie.larney@thicare.com> wrote:
> I have a text file that I am reading in through sqr. The file has no carriage
>returns or line breaks so the file wraps around. The end of a line appears to
>be delineated by a non ascii character so I can identify the end of a line. I
>think I need to in essence do a find and replace on the non ascii character so
>that I can replace it with a line break and read the file line by line into
>the sqr. Anyone have sample code or ideas doing a find and replace within sqr.
> Do I have to first read the entire file into a string and then do the find
>and replace. If so what are the limitations with this method.
It is probably a UNIX based file, they just have a line feed (0x0a)
character and look like one big long line in Notepad, PC based files
have a carriage return and line feed (0x0d 0x0a) at the end of each
line.
SQR parses files by looking for a "newline" which is either of the
combinations so it will read the file fine.
--
...Rob
-- No trees were killed in the sending of this message. However a
large number of electrons were terribly inconvenienced.
================================================
Robert Goshko
Registered Linux User #260513
Want a Gmail account, 2.6+ GB web mail (for free), just ask me.
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users