is there a way to create a text file and write and read to it ? cause i cant find anything related to this online. thanks :)
Where will the text file be stored?
If it is on an SD Card look at the SDCard library in the Reference section.
If the text file is on a PC you will need software on the PC - simplest would be a terminal program such as puTTY.
In either case you need to give more information about what you want to do.