[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



Hi Debbie,

I would expect that the "non-ascii" character is really an ascii
"non-printable" character.  If you can determine what it is, and that it
ends each line, then you can read for it and build a complete record
line that you can then process.

(If not any brighter ideas, you could do like I did and write a loop to
evaluate and display each character and its ascii number).

Are these non-printable characters at the same interval (e.g. every 50
characters)?  If so, perhaps you could read into a variable of fixed
length.

Just some thoughts to help you further along this quest
Bob

-----Original Message-----
From: Debbie Larney [mailto:debbie.larney@thicare.com] 
Sent: Tuesday, January 03, 2006 9:06 AM
To: sqr-users@sqrug.org
Subject: [sqr-users] Read a file into sqr

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.

Thanks,

Debbie

********************************************************************
CONFIDENTIALITY NOTICE: 
The information contained in this e-mail is legally privileged and
confidential information intended only for the use of the individual or
entity to whom it is addressed.  If the reader of this message is not
the intended recipient, you are hereby notified that any viewing,
dissemination, distribution, or copying of this e-mail message is
strictly prohibited.  If you have received and/or are viewing this
e-mail in error, please immediately notify the sender by reply e-mail,
and delete this e-mail from your system.

Thank you. 
******************************************************************** 





_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users