home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / cbm / 5131 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.9 KB

  1. Path: sparky!uunet!stanford.edu!rutgers!mcdhup!src4src!ckunz
  2. From: ckunz@src4src.linet.org (Charles Kunz)
  3. Newsgroups: comp.sys.cbm
  4. Subject: Re: UPloading
  5. Message-ID: <1992Dec18.045600.17972@src4src.linet.org>
  6. Date: 18 Dec 92 04:56:00 GMT
  7. References: <Dec.12.19.16.31.1992.13092@romulus.rutgers.edu> <NVeRVB1w164w@jwt.UUCP>
  8. Organization: The Source for Source
  9. Lines: 49
  10.  
  11. In article <NVeRVB1w164w@jwt.UUCP> bbs-artmoore@jwt.UUCP writes:
  12. >amyt@romulus.rutgers.edu (Amy Humphries) writes:
  13. >
  14. >> 
  15. >> I have several questions about uploading:
  16. >> 
  17. >> Note: I am using desterm.
  18. >> 
  19. >> 1.  When I try uploading a text file, all the lines are appended
  20. >> together (i.e. no carriage returns).  How can I fix this?
  21. >These silly MS-DOS and UNIX machines are usually happer when <CR>s have 
  22. >linefeeds following right behind them.  What you'll need to do is 
  23. >somehow put a linefeed in there...like this:
  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.  
  30. Line should read: 50 open3,8,3,n$+",s,w"
  31.  
  32. >60 fori=0to1
  33. >70 get#2,a$:i=st
  34. >80 ifa$=chr$(13)thena$=a$+chr$(10)
  35. >90 print#3,a$;
  36. >100 next
  37. >110 close3:close2
  38. >It's slow, but it will get the job done.
  39. >
  40. >( ( Art Moore  | Usenet bbs-artmoore@jwt.uucp
  41. > ) )           |  -or-  bbs-artmoore@jwt.oau.org
  42. >( (            | Fidonet CBM  -  Arthur Moore
  43. > ) )__Ask me about the C64 qwk offline reader!__
  44.  
  45. I have Novaterm, which includes an option to convert a file from PETSCII to
  46. True (Unix) ASCII.  This will convert the ASCII as well as add CHR$(10) to
  47. each CHR$(13).  If all you need is to add LF's then use the above BASIC
  48. program.
  49.  
  50. Chuck
  51.  
  52. -- 
  53. E-mail: ckunz@src4src.linet.org, aq084@cleveland.freenet.edu
  54. It's amazing what you can do with a Commodore 64, isn't it?
  55. Man cannot live by bread alone... once in a while he needs a bagel.
  56. "I love you.  Do you love me?  Please please!  (I wanna hold you)" - Dan Baird
  57.