Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
Remove delimiter from text variable while reading

i received this file form the server and stored it automatically
Text file chall.txt :

"rnIgOUXql5SEgpYy6vul"

JAVASCRIPT :

const fs = require('fs');
var challange = fs.readFileSync('chall.txt', 'utf8');

i want that variable to be stored like this rnIgOUXql5SEgpYy6vul not this "rnIgOUXql5SEgpYy6vul"
so i don't need every time open txt and remove delimiters

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Replace the quotes.

const fs = require('fs');
let content = fs.readFileSync('chall.txt', 'utf-8');
content = content.replace('"', '');
about 4 years ago · Juan Pablo Isaza Report

0

So, you will do like this :

const fs = require('fs');
var challange = await fs.readFileSync('chall.txt', 'utf8');
let data = challenge.replace("\"", "");
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!