Can't op myself on my own minecraft server?

I recently set up server for minecraft but I can't op my self and I can't use any game mode commands either can anyone tell me how to fix this

Go into the console and type op (username)

Drop that game it will only chew at your soul like a rabid dog

Go into the console and type op [your ingame username]. That should be good. You should then be able to use all commands, including oping other players.

OK, That is very easy. To make if more easy for you, I will tell you by steps.

Step 1. Ok, so go to the folder of where your server is running. There should be many folders including World. There should be file called OP…

Step 2. Click OP, then write your username in it, with no spaces! Than you should be op.