So basically the way i'm allocating the buffer is by just doing it manually like this
vertexSource = "#version 150\n"
"in vec3 in_Position;\n"
"void main()\n"
"{\n"
"gl_Position = vec4(in_Position.x, in_Position.y, in_Position.z, 1.0);\n"
"}";
fragmentSource = "#version 150\n"
"precision highp float;\n"
"out vec4 fragColor;"
"void main()\n"
"{\n"
"fragColor = vec4(1.0,1.0,1.0,1.0);\n"
"}";
As you can see that's not very convenient for me. I would rather have it where I can read from a file then have the computer do that work for me. So how would I go about doing that?