Code:
#!/bin/sh
cat $1 | sed 's/:1080//g'
if you want some other way, be more specific as to if it's C or C++, since file handling is a bit different.
Perhaps you should look at opening file, reading in, string handling, and output. Then try to make something happen, if all fails, give us your suggestion and we will correct it, maybe even come with the solution.