home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / cbm / 5041 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.2 KB  |  45 lines

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