// Specify the file name
var fname = "bwire_locations_qdieddpf60_CP1.txt";
// wirespec class
function cWireSpecification(x0, y0, x1, y1, h1, h2, alpha, beta, diam,wname)
{
// Properties
this.x0 = x0;
this.y0 = y0;
this.x1 = x1;
this.y1 = y1;
this.h1 = h1;
this.h2 = h2;
this.alpha = alpha;
this.beta = beta;
this.diam = diam;
this.wname = wname;
...
문제는 관련되 자바 스크립트 파일을 실행할때 마다. 매번 다른 파일(bwire_locations_qdieddpf60_CP1.txt)을 불러들여야 하는데 번거롭네요. 윈도우에서 파일찾기 기능처럼 경로와 파일 이름을 사용자가 찾아서 주면 두번째 줄을 자동으로 바꾸어 스크립트가 실행되도록 할 수 있을까요? 아시는분 계시면 알려주세요.
감사합니다. 명성호 드림
짧은글 일수록 신중하게.