home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.cbm
- Path: sparky!uunet!peora!tarpit!bilver!jwt!artmoore
- From: bbs-artmoore@jwt.UUCP (arthur moore)
- Subject: Re: UPloading
- Reply-To: bbs-artmoore@jwt.UUCP
- Organization: The Matrix
- Date: Mon, 14 Dec 1992 06:36:34 GMT
- Message-ID: <NVeRVB1w164w@jwt.UUCP>
- References: <Dec.12.19.16.31.1992.13092@romulus.rutgers.edu>
- Sender: bbs@jwt.UUCP
- Lines: 32
-
- amyt@romulus.rutgers.edu (Amy Humphries) writes:
-
- >
- > I have several questions about uploading:
- >
- > Note: I am using desterm.
- >
- > 1. When I try uploading a text file, all the lines are appended
- > together (i.e. no carriage returns). How can I fix this?
-
- These silly MS-DOS and UNIX machines are usually happer when <CR>s have
- linefeeds following right behind them. What you'll need to do is
- somehow put a linefeed in there...like this:
-
- 10 input"file to convert";f$
- 20 input"new filename";n$
- 30 iff$=n$then10
- 40 open2,8,2,f$+",s,r"
- 50 open2,8,3,n$+",s,w"
- 60 fori=0to1
- 70 get#2,a$:i=st
- 80 ifa$=chr$(13)thena$=a$+chr$(10)
- 90 print#3,a$;
- 100 next
- 110 close3:close2
-
- It's slow, but it will get the job done.
-
- ( ( Art Moore | Usenet bbs-artmoore@jwt.uucp
- ) ) | -or- bbs-artmoore@jwt.oau.org
- ( ( | Fidonet CBM - Arthur Moore
- ) )__Ask me about the C64 qwk offline reader!__
-