# \[SOLVED\] loadBytes implemented yet?

**URL:** <https://discourse.processing.org/t/solved-loadbytes-implemented-yet/13641>\
**Category:** p5.js\
**Created:** [August 27, 2019, 6:41am UTC](https://discourse.processing.org/t/solved-loadbytes-implemented-yet/13641 "2019-08-27T06:41:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shedMusic](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shedmusic/32/601_2.png) [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Post date:** [August 27, 2019, 6:41am UTC](https://discourse.processing.org/t/solved-loadbytes-implemented-yet/13641/1 "2019-08-27T06:41:29Z")

</div>

Just tried using loadBytes() but the console (Edge) says it hasn’t been implemented, and the p5.js file says similar:

0: not yet implemented

p5.prototype.loadBytes = function () {  
// TODO  
throw ‘not yet implemented’;  
};

Is it likely this will be working soon …?

Cheers  
Mark

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [August 27, 2019, 7:17am UTC](https://discourse.processing.org/t/solved-loadbytes-implemented-yet/13641/2 "2019-08-27T07:17:46Z")

</div>

is there a version problem?

> **[reference | p5.js](https://p5js.org/reference/#/p5/loadBytes)**
>
> p5.js a JS client-side library for creating graphic and interactive experiences, based on the core principles of Processing.

> **[p5.js Web Editor](https://editor.p5js.org/kll/sketches/6K8eiteaU)**
>
> A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.

use

> /\*! p5.js v0.9.0 July 01, 2019 \*/

run on Win10 / Firefox & Edge

 ![p5js_loadbytes](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/d5ddf23bab235e74f7768d20bc1a97714673acfe.png)

```auto
let mytext;

function preload() {
  mytext = loadBytes('assets/myfile.txt');
}

function setup() {
  createCanvas(400, 400);
  //for (let i = 0; i < 5; i++) console.log( char(mytext.bytes[i]) );
}

function draw() {
  background(200,200,0);
  for (let i = 0; i < 5; i++) 
    text( char(mytext.bytes[i]) ,20+i*20,20);
}

```

---

<div class="post-metadata">

**Author:** ![shedMusic](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shedmusic/32/601_2.png) [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Post date:** [August 27, 2019, 8:04am UTC](https://discourse.processing.org/t/solved-loadbytes-implemented-yet/13641/3 "2019-08-27T08:04:43Z")

</div>

Maybe … I’ll check that now …

@kll That was the problem … a slightly old version of p5.js …

Many thanks
