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

202
Views
cambiar bucles while a bucles for

Estoy tratando de cambiar este bucle while en un bucle for y no estoy llegando muy lejos. Soy nuevo en la programación, así que disculpas si esta es una tarea trivial.

 while (read < fileBytes.length && (numRead = diStream.read(fileBytes, read, fileBytes.length - read)) >= 0) { read = read + numRead; }
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Intenta usar esto:

 start_value = //.... for (read = start_value; read < fileBytes.length && (numRead = diStream.read(fileBytes, read, fileBytes.length - read)) >= 0; read += numRead) { //Your actions }
over 4 years ago · Santiago Trujillo Report

0

Soy un programador de C#, pero escribiré un código que es muy similar al que necesita.

 for (int read = 0; read < fileBytes.length;) { numRead = diStream.read(fileBytes, read, fileBytes.length - read); if (numRead >= 0) { read = read + numRead; } }
over 4 years ago · Santiago Trujillo Report

0

for(numRead = diStream.read(fileBytes, read, fileBytes.length - read); read < fileBytes.length && numRead >= 0; numRead = diStream.read(fileBytes, read, fileBytes.length - read)) { read = read + numRead; }
over 4 years ago · Santiago Trujillo 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!