Advertisement
JuanFelipeArango28

Untitled

Sep 26th, 2020
1,854
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.72 KB | None | 0 0
  1. (define (cargar-datos nombrearchivo)
  2.   (cond
  3.     [(not (string? nombrearchivo)) (error "El dato ingresado debe ser una cadena de tecto que indique la ruta del archivo")]
  4.     [else
  5.      (local
  6.        (
  7.         (define (hacer-lista archivo)
  8.           (read-words/line archivo))
  9.         )
  10.        (cond
  11.          [(empty? (hacer-lista nombrearchivo)) empty]
  12.          [else (make-persona (make-datos (fisrt (first (hacer-lista nombrearchivo)))
  13.                                          (second (first (hacer-lista nombrearchivo)))
  14.                                          (third (first(hacer-lista nombrearchivo))))
  15.                              (fourth (first (hacer-lista nombrearchivo))))]
  16.          )
  17.        )]
  18.     )
  19.   )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement