Answers for "how to open a file with open in c"

1

how to open a file with open in c

int main (void)
{
	int fd = open("path_name.c", O_RDONLY);  // the file is now open, you just need to read it
	return (0);
}
Posted by: Guest on May-30-2021

Browse Popular Code Answers by Language