Including carriage returns AND line breaks in a .txt document

F

furghella

I am trying to import a text file into FIleMaker. The file is a
tab-delimited document (^t). Records are separated by a carriage
return (^p).

Each record contains a small table, formatted using blank spaces and
line breaks. So far so good. Now, if I save this file as a .txt
document, Word converts ALL line breaks (^l) into carriage returns
(^p). On the other end, if I just use .doc document, FileMaker won't
import it.

Question: How can I retain both carriage returns (^p) and line breaks
(^l) in a Word text file?
 
D

Daniel Cohen

furghella said:
I am trying to import a text file into FIleMaker. The file is a
tab-delimited document (^t). Records are separated by a carriage
return (^p).

Each record contains a small table, formatted using blank spaces and
line breaks. So far so good. Now, if I save this file as a .txt
document, Word converts ALL line breaks (^l) into carriage returns
(^p). On the other end, if I just use .doc document, FileMaker won't
import it.

Question: How can I retain both carriage returns (^p) and line breaks
(^l) in a Word text file?

I don't know how to do it in Word, but you could always pass the text
file through another program (such as Tex-Edit, or simpler ones) to
convert back.

First, in Word do a Find and Replace to replace all ^p by, for instance,
qqqq (I just chose 'qqqq' because it will never be there naturally).
Then save as text. Next use the other program, first to convert carriage
returns to line breaks and then to replace qqqq by a carriage return.

Clunky, but it should work.
 
J

John McGhie [MVP - Word]

You can't. In a text file, there is only one kind of line break: the
paragraph end does not exist.

Access will import a Word document: have a look and see if FileMaker will
also. If it will, then you can preserve both line end and paragraph
characters.

The other technique commonly used is to substitute one of the types of
character for something else that will not occur in the file: I usually use
$%$. After importing, I then change $%$ back to paragraph or whatever.

cheers


This responds to article <[email protected]>,
from "furghella said:
I am trying to import a text file into FIleMaker. The file is a
tab-delimited document (^t). Records are separated by a carriage
return (^p).

Each record contains a small table, formatted using blank spaces and
line breaks. So far so good. Now, if I save this file as a .txt
document, Word converts ALL line breaks (^l) into carriage returns
(^p). On the other end, if I just use .doc document, FileMaker won't
import it.

Question: How can I retain both carriage returns (^p) and line breaks
(^l) in a Word text file?

--

Please respond only to the newsgroup to preserve the thread.

John McGhie, Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. GMT + 10 Hrs
+61 4 1209 1410, mailto:[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top