Message 1 of 4
Text problem

Not applicable
02-06-2008
07:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When opening an ascii file using 2008 the line it reads is converted to junk.
Here is a snippet:
(setq fn (open "c:\\braintree\\a.txt" "r"))
(while (setq s (read-line fn)) ;read a.txt and create a list of the drawings
(if (= plan 1)…….rest of code
The file a.txt looks like:
H12
L12
H13
If I look at the variable s it looks like "ÿþH\0001\0002\000" instead of "H12".
Have you got any ideas?
Here is a snippet:
(setq fn (open "c:\\braintree\\a.txt" "r"))
(while (setq s (read-line fn)) ;read a.txt and create a list of the drawings
(if (= plan 1)…….rest of code
The file a.txt looks like:
H12
L12
H13
If I look at the variable s it looks like "ÿþH\0001\0002\000" instead of "H12".
Have you got any ideas?