home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!rutgers!mcdhup!src4src!ckunz
- From: ckunz@src4src.linet.org (Charles Kunz)
- Newsgroups: comp.sys.cbm
- Subject: Re: UPloading
- Message-ID: <1992Dec18.045600.17972@src4src.linet.org>
- Date: 18 Dec 92 04:56:00 GMT
- References: <Dec.12.19.16.31.1992.13092@romulus.rutgers.edu> <NVeRVB1w164w@jwt.UUCP>
- Organization: The Source for Source
- Lines: 49
-
- In article <NVeRVB1w164w@jwt.UUCP> bbs-artmoore@jwt.UUCP writes:
- >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"
-
- Line should read: 50 open3,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!__
-
- I have Novaterm, which includes an option to convert a file from PETSCII to
- True (Unix) ASCII. This will convert the ASCII as well as add CHR$(10) to
- each CHR$(13). If all you need is to add LF's then use the above BASIC
- program.
-
- Chuck
-
- --
- E-mail: ckunz@src4src.linet.org, aq084@cleveland.freenet.edu
- It's amazing what you can do with a Commodore 64, isn't it?
- Man cannot live by bread alone... once in a while he needs a bagel.
- "I love you. Do you love me? Please please! (I wanna hold you)" - Dan Baird
-